-
July 25th, 2006, 19:04 PM
#9
Senior Member
ok new problem I was trying to make this script work for Firefox but the xml load routing doesnt seem to agree with it. Here is the routine, everything in red is what I changed (important note: this script still works in IE):
if(window.ActiveXObject){
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}
else{ if (document.implementation&&document.implementation.createDocument){
var xmlDoc=document.implementation.createDocument("","doc",null);}}
function loadXML(xmlFile) {
xmlDoc.async="false";
xmlDoc.onreadystatechange=verify;
xmlDoc.load(xmlFile);
}
function verify() {
if(xmlDoc.readyState!=4)
return false;
}
function traverse(tree) {}
function initTraverse(file) {
loadXML(file);
var xmlNew=xmlDoc.documentElement;
traverse(xmlNew);
}
initTraverse("events.xml");
anyone have any suggestions?
Last edited by beelzebub; July 25th, 2006 at 19:32 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks