Hi,
I am writing some javascript that configures an object dependent upon the data contained within an external xml file. In IE6 this is working. In netsape7 I can also read data from the xml file. The problem is that the XML is taking time to be parsed and as a result code that should be processed after the xml has been read is being processed before the xml has completed reading in netscape resulting in my objects properties returning as undefined.
I have tried using setTimeout to control the flow, but I am ending up with a situation where netscape continues to show as loading forever despite the fact that xml has clearly loaded. A side effect of this appears to be that neither of the browsers subsequently allow a refresh.
Has anyone had any experience with this and might be able to offer me some advice or point me to some explanatory code fragments?
Thanks,
Conspic
I am writing some javascript that configures an object dependent upon the data contained within an external xml file. In IE6 this is working. In netsape7 I can also read data from the xml file. The problem is that the XML is taking time to be parsed and as a result code that should be processed after the xml has been read is being processed before the xml has completed reading in netscape resulting in my objects properties returning as undefined.
I have tried using setTimeout to control the flow, but I am ending up with a situation where netscape continues to show as loading forever despite the fact that xml has clearly loaded. A side effect of this appears to be that neither of the browsers subsequently allow a refresh.
Has anyone had any experience with this and might be able to offer me some advice or point me to some explanatory code fragments?
Thanks,
Conspic