The proble is XMLHttpRequest is working with just explorer. I used XMLHttpRequest in my applications in Ovi for updating. But now they arent working. How can I slve this problem. Is not browsers supporting XMLHttpRequest anymore? What can I use for reading a html API's response with JS for WRT Widget.
I downloaded Widget XMLHttpRequest(from here). It's not working too.
function httpRequest()
{
try{
var oRequest = new XMLHttpRequest();
var sURL = "http:/localhost/dovizservice.aspx?i=doviz&kod=usd&tip=1";
oRequest.open("GET",sURL,false);
oRequest.setRequestHeader("User-Agent",navigator.userAgent);
oRequest.send(null)
if (oRequest.status==200){
return oRequest.responseText;
}else{
return "NOK Httprequest Error.!";
}
}catch(e){
return e;
}
}

Reply With Quote

