Welcome Guest, Not a member yet? Register   Sign In
javascript implementation
#1

[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.
#2

[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);




Theme © iAndrew 2016 - Forum software by © MyBB