Welcome Guest, Not a member yet? Register   Sign In
Ajax & CI3
#6

(04-18-2015, 03:15 AM)sackbut Wrote: My main concern is not to clutter up the view with all sorts of bits of script etc... but with an event driven thing like AJAX I can't see any way to avoid it.

You should be able to put most of the script into .js files and load them into your views with script tags (or use an assets library to load them). More often than not, you'll be able to boil down most of your site into a handful of page types which need specific sets of scripts. At that point, you can usually load a set of scripts for the current page type and then add a couple of lines of script to configure the scripts for the current page, if needed.
Reply


Messages In This Thread
Ajax & CI3 - by sackbut - 04-17-2015, 02:32 AM
RE: Ajax & CI3 - by mwhitney - 04-17-2015, 02:20 PM
RE: Ajax & CI3 - by sackbut - 04-18-2015, 03:09 AM
RE: Ajax & CI3 - by bitwizard - 04-17-2015, 05:18 PM
RE: Ajax & CI3 - by sackbut - 04-18-2015, 03:15 AM
RE: Ajax & CI3 - by mwhitney - 04-20-2015, 10:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB