i am currently using the code below from w3schools to parse a xml file and it works fine in firefox and ie, but when i try to view the site from safari, i get an error
here is the error from safari:
i am using the following code (originally from w3schools):Code:Value undefined (result of expression xmlDoc.load) is not object.
i tried following the xmlhttpreq example from apple, but i couldnt get to work.Code:function loadXMLDoc(dname) { try //Internet Explorer { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); } catch(e) { try //Firefox, Mozilla, Opera, etc. { xmlDoc=document.implementation.createDocument("","",null); } catch(e) {alert(e.message)} } try { xmlDoc.async=false; xmlDoc.load(dname); return(xmlDoc); } catch(e) {alert(e.message)} return(null); }
if anyone has any advise, i'm all ears. thanks in advance.



Reply With Quote
Bookmarks