Results 1 to 12 of 12

Thread: I need someone who knows something about Javascript

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Senior Member beelzebub's Avatar
    Join Date
    Aug 2004
    Location
    California
    Posts
    223
    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
  •