OZONE Asylum
Forums
DHTML/Javascript
Javascript Online Checker (Am i online or offline)
This page's ID:
28659
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Thanks for the replies! @Tyberius: yes, i thought about that frame/iframe solution too, but i'd expect IE7 to classify this as a phishing attempt!? What do you think? @Hugh: I like your idea, would propably be most common way @poi: i tried your method, but i think i can't get mozilla to read a remmote file! ich used this script: <script type="text/javascript"> // global flag var isIE = false; // global request and XML document objects var req; function loadXMLDoc(url) { alert('check'); // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(null); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(); } } } // handle onreadystatechange event of req object function processReqChange() { // only if req shows "loaded" if (req.readyState == 4) { // only if "OK" if (req.status == 200) { alert("ONLINE: \nXML File Content: " + req.statusText); } else { alert('offline'); } } } </script> ... and in the body tag: <body onLoad="loadXMLDoc('http://ps-mc.de/onlinecheck.xml');"> HOW can i make Mozilla read the online file?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »