HZNM.COM
welcome to my space
X
Search:  
 HOME   Wierd global vars problem
Wierd global vars problem
Published by: jane 2010-03-18
Welcome to:hznm.com

  • Search local hard drive for all the copies of the ::
    Dec 17, 2002 But my problem I can not figure out how to search for the same name of the You have two global variables sDBNewPath and sDBBackupPath which are supposed You seem to be doing a very weird thing in this function.
    http://answers.google.com/answers/threadview/id/125376.html
    HOME
    Hi guys, i am having a wierd problem with setting some global vars from a dynamically loaded xml file. When the xml is loaded i am starting a function to store the data in some global vars, when i trace the global var within the function, the trace works perfectly. But however if i try to trace it on the root, the trace comes out undefined.

    i have tried all sort of things but nothing comes in mind to fix it, maybe you guys can help me.

    heres the code
    attached are the files

    AS:Code

    var Conf = new Array();
    xmlConfig = new XML();
    xmlConfig.ignoreWhite = true;
    xmlConfig.onLoad = loadConfigXML;
    xmlConfig.load("config.xml");
    function loadConfigXML(loaded) {
    if (loaded) {
    this.smartparser(Conf);

    } else {
    content = "where is the xml?!";
    }
    loadUrls();
    }
    //------------------------------------------------------------------
    // XML SMARTPARSER
    //------------------------------------------------------------------
    XML.prototype.smartparser = function(holder) {
    for (this.n=0; this.n this.Item = this.firstChild.childNodes[this.n];
    if (this.Item.nodeName == "topfeature" or this.Item.nodeName == "dsk01" or this.Item.nodeName == "dsk02" or this.Item.nodeName == "promos" or this.Item.nodeName == "musicplayer") {
    Marine Industry::
    Jun 15, 2006 "In 2004 Brunswick had $5.23 billion in the global retail market. A global leader in the leisure products industry, the company's
    http://answers.google.com/answers/threadview/id/738402.html
    HOME
    Linux: samba error::
    Aug 12, 2004 Global Settings ===================================== [global] .. By the way, in /var/log/samba there will be a few log files in there,
    http://answers.google.com/answers/threadview/id/375705.html
    HOME
    if (this.Item.firstChild.nodeType == 3) {
    holder.push(this.Item.firstChild.nodeValue);
    //holder[this.Item.nodeName] = this.Item.firstChild.nodeValue;
    } else {
    if (this.Item.nodeValue == null) {
    tmp = holder[holder.length]=new Array();
    newxml = new XML(this.Item);
    newxml.smartparser(tmp);
    }
    }
    } else {
    if (this.Item.firstChild.nodeType == 3) {
    //holder.push(this.Item.firstChild.nodeValue);
    holder[this.Item.nodeName] = this.Item.firstChild.nodeValue;
    Ada program using generic package::
    Jan 6, 2003 The problem I have now is that I can not compile it. Assuming the global variable is initialized is not recommended. . The variables in the main program include Big_Line - a string array long enough to fit the
    http://answers.google.com/answers/threadview/id/127046.html
    HOME
    Check our documentation for spelling & obvious ::
    Fixed problem where DLLs might extract to %SystemSystem% if thinstall becomes confused .. install system DLLs, and set global environment variables. the changes they make to your data can cause it ** crash or do weird things.
    http://answers.google.com/answers/threadview/id/342247.html
    HOME
    } else {
    if (this.Item.nodeValue == null) {
    tmp = holder[holder.length]=new Array();
    newxml = new XML(this.Item);
    newxml.smartparser(tmp);
    }
    }
    }
    }
    };
    //------------------------------------------------------------------
    function loadUrls() {
    _global.topfeature = Conf[0];
    _global.dsk01 = Conf[1];
    _global.dsk02 = Conf[2];
    _global.promos = Conf[3];
    _global.musicplayer = Conf[4];
    trace(_global.topfeature);
    }
    trace(_global.topfeature);
    stop();



    XML:Code


    http://192.168.0.2/cms/topfeature.php
    http://192.168.0.2/cms/section.php
    http://192.168.0.2/cms/content.php
    http://192.168.0.2/cms/promos.php
    http://192.168.0.2/tone.php?id=


  • Probably what might be happening is that the trace at the bottom of the code, outside of the function is happening before the xml is beeing loaded and added to the array, probably i will have to check if the xml is loaded before i can declare the global vars. It just makes me a bit nervouse because if this is so, I will have to change some other code....

    I think that might be it...

    But it sure would be nice to know what you guys have to say...


  • Any ideas ?
    Or is my code so ugly no one wants to even look at it ?





  • Challenging Books For A 14 Year Old?
    First guitar : acoustic or electric?

    You are looking at:hznm.com's Wierd global vars problem, click hznm.com to home
  • if the jonas brothers and the hanson brothers got into a gangsta battle who would win
  • what is arianism and where does it put jesus
  • survey what 039 s the longest amount of time you 039 ve ever forced yourself to turn the computer off for
  • who would win in a fight the jonas brothers or kane and undertaker
  • rate my team on pokemon diamond pearl
  • my german shepherd is in surgery any kind words of comfort from nice people like you
  • when the jonas brothers are done with the burning up tour when will they have another tour
  • who is going to the oprah taping march 27 for the jonas brothers
  • why are ladies like watches
  • how do you evolve in explorers of time
  • who is singing at the march 7th jonas brothers concert with them
  • was this really that out of order
  • who else is upset that chelsie lately made fun of the jonas brothers
  • if god is a forgiving god why did he not forgive the animals and the earth for adam and eve 039 s sin
  •  
  • so atheists if the bible has been changed why are the dead sea scrolls squirreled away from prying eyes
  • aren 039 t these storylines of smackdown getting a little old and dull
  • who was the girl who climbed onto the jonas brothers roof
  • emergancy im on microsoft word and i don 039 t know how to turn on spell checker please help me
  • i am opening a checking savings account today please help with advice
  • why do people lie about how zahara jolie pitt looks
  • who on earth are the jonas brothers
  • where in the bible do it state lucifer was over the heavenly choir
  • who is better miley cyrus or the jonas brothers
  • do women find the idea of 039 wingmen 039 offensive
  • what does this mean its spanish
  • poll what is your age height and weight
  • how do you stick to your budget
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ