Welcome Guest, Not a member yet? Register   Sign In
Dynamic ajax calls
#3

Ahhh.. the data-* Attributes.. I'm actually use them, but I totally forgot that I could give data to the js. x.x (Stupid, if I think of it, because as I said, I already use it in another part of this application..)

Quote:mwhitney

Another possibility would be to add script to the page which defines an object containing your data before the main script is included, and have the main script look for that object.

It sounds interesting, but I have little idea what you mean. Like an script in a view, which creates variables (or objects), that stores CI-data and then include the external script, so that I could use those data? Is this right?
-.-.-.-.-.-.-.-.- Angel -.-.-.-.-.-.-.-.-
Reply


Messages In This Thread
Dynamic ajax calls - by Urastor - 08-05-2015, 09:18 AM
RE: Dynamic ajax calls - by mwhitney - 08-05-2015, 10:48 AM
RE: Dynamic ajax calls - by Urastor - 08-06-2015, 02:58 AM
RE: Dynamic ajax calls - by mwhitney - 08-06-2015, 06:24 AM
RE: Dynamic ajax calls - by Urastor - 08-06-2015, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB