I'm making an android app using apache cordova and I would to know, if it's possible, how to run an url using javascript.
I want to update a data using an url like this :
http://login:password@192.168.*.*:8080/json.htm?type=command¶m=udevice&idx=4&nvalue=0&svalue=22
When I execute this URL in the navigator, the data is updated, now i would like to know if I can do that using javascript/jQuery. I use $.getJSON on the same fil and everything works.
I've already tried
$.get("http://login:password@192.168.*.*:8080/json.htm?type=command¶m=udevice&idx=4&nvalue=0&svalue=22")
and
$.ajax({"http://login:password@192.168.*.*:8080/json.htm?type=command¶m=udevice&idx=4&nvalue=0&svalue=22"};)