Hi all, this is my first post.
Please, can anywone analyze the code below and tell me what's wrong?
In the emulator, everything works good, but as soon as i try the code in the device (Nokia N95), it stops at STATUS 2.
I'm really a bit frustrated, thanks to all.
var ajax2=new XMLHttpRequest();
ajax2.open("GET","http://www.google.com/ig/api?weather=" + citta_input, 1);
ajax2.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
ajax2.send(null);
ajax2.onreadystatechange = function()
{
if(ajax2.readyState == 0) {widget.showNotification("Non Inizializzato");}
if(ajax2.readyState == 1) {widget.showNotification("Caricamento...");}
if(ajax2.readyState == 2) {widget.showNotification("CARICATO!!");}
if(ajax2.readyState == 3) {widget.showNotification("...Interazione");}
if(ajax2.readyState == 4) {
widget.showNotification("Completato");
if(ajax2.status == 200) {
// PARSING XML
}
}
