Inactive User
12 years agoJquery in endpoint
This might be a dumb question but I can't seem to use Lithium's jQuery in an endpoint. For instance, I'm trying to create a javascript file with some common js functions we're using in an endpoint bu...
Not sure why that's not working. Have you checked that LIHTIUM.jQuery is defined when your code is executed (e.g. by debugging)?
You could also try referencing jQuery directly (via $.POST(...) outside the object) to check jQuery has been loaded.
Solution was just to wrap it all in
LITHIUM.Loader.onLoad(function(){ //jquery });
Thanks guys for the help!