![]() Topic awaiting preservation: Javascript and Firefox (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
![]() The following page has Javascript and uses the xmlhttp request object to perform a client-side roundrtrip to the server to fetch additional information for a club within a state, and the club information. It does not work at all in Firefox. Any clues why not? |
Paranoid (IV) Inmate From: Florida |
![]() Just a guess (I don't know a lot about JavaScript |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() For XMPHTTPRequest it's not an instant thing (ergo the asynchrounous). code: if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.open("GET", url, false); req.send(null); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.open("GET", url, false); req.send(); } }
code: if (window.XMLHttpRequest) { req = new XMLHttpRequest(); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } if (req) { req.open("GET", url, false); req.onreadystatechage = doSomething; // This is the key line req.send(); }
|