|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
30-04-2007, 02.22.19 | #1 |
Newbie
Registrato: 27-04-2007
Messaggi: 1
|
[javascript] Problema con Ajax/XMLHttpRequest/XMLHTTP e un dominio
sto sviluppando un gadget per la sidebar di windows vista (ma valido anche per le altre dashboard) che permette l'invio di SMS agli utenti con email nel dominio @tin.it Per eseguire le richieste http ho usato 3 metodi: Ajax (con il framework Prototype), XMLHttpRequest e ActiveXObject. ecco il codice: codice con ActiveXObject e XMLHttpRequest: Codice:
Authenticate: function() { //var httpReq = new XMLHttpRequest(); var httpReq = new ActiveXObject('Microsoft.XMLHTTP'); httpReq.open("GET", "http://communicator.virgilio.it/asp/login.asp?pop_login="+SmsManager.settings.username+"&password="+SmsManager.settings.password+"&js=1&status=DA_HOMEPAGE"); httpReq.onreadystatechange = function() { if (httpReq.readyState >= 4) { dosomething(); } } httpReq.send(null); } Codice:
Authenticate: function() { new Ajax.Request('http://communicator.virgilio.it/asp/login.asp', { method:'get', parameters: { pop_login: msManager.settings.username, password: SmsManager.settings.password, js: 1, status: 'DA_HOMEPAGE' }, onSuccess: function(transport) { dosomething(); }, onFailure: function() { dosomethingelse(); } }); } Sembra che per qualche motivo a me oscuro si rifiuti di comunicare con questo dominio, come se fosse bloccato, ma è solo un'opinione... Tra l'altro in IE non ho nessun problema, tutto funziona, mentre riscontro questo problema con la SideBar. Qualcuno ha idea del perchè mi capita questo? Grazie per l'aiuto (che spero mi darete). |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
Strumenti discussione | |
|
|
Discussioni simili | ||||
Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
PROBLEMA CON NERO..I brani "saltano"tipo vinile | Pio 4te | Masterizzazione Giochi Games | 9 | 05-10-2006 18.22.17 |
Problema su gioco online 2d e scheda Geforce2 MX 400 64mb | Ciobby | Software applicativo | 2 | 09-08-2006 12.39.06 |
Problema Pinnacle PCTV Pro e periferiche IDE | exion | Hardware e Overclock | 56 | 30-01-2005 10.44.47 |
Problema con la masterizzazione... la colpa è della Audigy!!! Qualche idea??? | LaBrie | Windows 7/Vista/XP/ 2003 | 13 | 31-01-2004 14.28.25 |
Problema di lentezza ma solo certi momenti | Marko | Windows 7/Vista/XP/ 2003 | 3 | 12-09-2003 15.01.19 |