Hi i am trying to send GET information to a PHP site through JavaScript in an iRidium Mobile environment (not a web browser). I can't use JQuery due to the limitation of my development environment.
this is what I have so far:
function AjaxRequest(url,method){
var req = createXMLHTTPObject();
req.onreadystatechange= function(){
if(req.readyState != 4) return;
if(req.status != 200) return;
alert(req.responseText);
}
req.open(method,url,true);
req.send(null);
}
I get the error:
Script exception: ReferenceError: createXMLHTTPObject
I am probably missing some library, but I don't know where to find it or an alternative.
One possible method to access content data in Iridium Mobile is by using its own driver and configuring IP, port, protocol, etc. After that you can receive data directly inside Javascript app.
Check more details in: http://dev.iridiummobile.net/AV_%26_Custom_Systems/en#AV_Custom_Systems_(Client)