|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Aug 2003
Città: verona
Messaggi: 541
|
[javascript]load XML firefox
ciao a tutti, ho un disperato bisogno di aiuto!
Ho bisogno di caricare un documento xml per poi effettuarci delle operazioni..il problema è che il caricamento non sembra andare a buon fine su firefox..mentre IE e opera fungono...dateci un'occhiata è molto breve! function importXML() { var moz = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined'); if (moz) { alert("usi mozilla"); xmlDoc = document.implementation.createDocument("", "", null); //documento vuoto } else if (window.ActiveXObject) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.onreadystatechange = function () { if (xmlDoc.readyState == 4) alert("OK"); }; } else { alert('Your browser can\'t handle this script'); return; } alert("sei qui"); xmlDoc.load("p_classe_Wall.xml"); alert("caricamento effettuato"); } su firefox non stampa l'ultimo alert "caricamento effettuato" segno che qualcosa non va nel load..o no??...
__________________
CASE: Cooler Master Stacker 831 Silver MOBO: Asus Maximus Formula CPU: Intel Q6600@2,4ghz RAM: 2x 1GB Corsair XMS2 pc2-8500@1066mhz + 2x2GB Corsair XMS2 pc2-8500@1066mhzVGA: ATI Sapphire RADEON 5830 1GB GDDR5 HD: 2 x WD Caviar SE16 500GB Raid 0 |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Per i browser mozilla/firefox, vedi l'oggetto XMLHttpRequest.
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 08:19.




















