CodeIgniter Forums
javascript implementation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: javascript implementation (/showthread.php?tid=25109)



javascript implementation - El Forum - 12-01-2009

[eluser]Unknown[/eluser]
I am building a form and i want to use calendar.js javascript. There is some prelim work required to enable JS in CI.
So far I have:
Set the path in config.php : $config['javascript_path']= "javascript/";
added a load statement in the controller : $this->javascripts->add('Calendar.js');
My problem is the view. I need to extract the calendar script but am not
sure what to use.
I tried to use a FOREACH loop but is not working.
There must be someone who has set this up. Do I need to use a helper file.


javascript implementation - El Forum - 12-01-2009

[eluser]überfuzz[/eluser]
How do you pass the calendar info to the view now? While trying to figure out wish info you're getting through to the view file you can use print_r($variable);