Page 1 of 1

Can I use jQuery and make ajax requests?

Posted: 02 Apr 2015 12:12
by xchatter
Hi dudes,

I added a line to loadFile in my main.js and so I am writing my bindings(scenes) in a separate js file. Everything is good, i test them with console.log and they do appear at the server log.
My question is, can I use jQuery when making AJAX($.ajax()) request to a php file at my hosting?
I won't use any response or something, I just want to send the data and do stuff with it in my php scripts.

Re: Can I use jQuery and make ajax requests?

Posted: 03 Apr 2015 13:18
by xchatter
I couldn't find a way to load it.

Re: Can I use jQuery and make ajax requests?

Posted: 03 Apr 2015 19:40
by pofs
No, you cannot use jQuery. It is rather browser-bound, and might fail in plain JS environment.

You can make requests though. Look for http.request() in developer documentation.

Re: Can I use jQuery and make ajax requests?

Posted: 07 Apr 2015 13:27
by xchatter
Thanks for the tip. :)
Works.