Welcome Guest, Not a member yet? Register   Sign In
Ajax base Form validation?
#8

[eluser]boony[/eluser]
[quote author="elinad" date="1296136950"]I am new to CI and i don't know where should I place site.js?[/quote]

Hi,

You should look at the intro to ci tutorials first. But the basic structure would be to create a folder in the root folder (call it js or assets or whatever) and put the site.js in there, as the following

ci
-application
-system
-js
-site.js

You can then refer to the site.js in the head section like this


Code:
[script type="text/javascript" src="<?=base_url();?>/js/site.js"></script]


essentially, all the assets files like css and images folders should be placed in the root directory and referenced as above.

Hope this helps Smile


Messages In This Thread
Ajax base Form validation? - by El Forum - 01-15-2011, 04:24 AM
Ajax base Form validation? - by El Forum - 01-15-2011, 05:40 AM
Ajax base Form validation? - by El Forum - 01-15-2011, 12:26 PM
Ajax base Form validation? - by El Forum - 01-15-2011, 06:38 PM
Ajax base Form validation? - by El Forum - 01-15-2011, 07:14 PM
Ajax base Form validation? - by El Forum - 01-17-2011, 12:42 AM
Ajax base Form validation? - by El Forum - 01-27-2011, 02:02 AM
Ajax base Form validation? - by El Forum - 01-27-2011, 06:39 PM
Ajax base Form validation? - by El Forum - 01-27-2011, 07:56 PM
Ajax base Form validation? - by El Forum - 03-11-2011, 02:20 AM
Ajax base Form validation? - by El Forum - 03-11-2011, 03:55 AM
Ajax base Form validation? - by El Forum - 04-10-2011, 07:01 AM
Ajax base Form validation? - by El Forum - 04-10-2011, 10:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB