View Full Version : integrating javascript xml parser with php xml parser

06-09-2003, 10:01 PM

I have no trouble to display javascript xml parser separately from php code. However, when I take js parser and integrate it into php parser page, no text are displayed from js parser. The following is my code -

<div id="contentmargin">
<div id="top">secondary control panel</div>
<h1><img src="images/eclogo.gif"/>&nbsp;<?echo $mName?></h1>
<h2><?echo $tTitle?></h2>


var xmldoc=new ActiveXObject("Microsoft.XMLDOM");
displayPage(xmldoc, "01_01_01_01_01_wl.xml");

displayPage() is the main function which calls other functions to parse XML data and use document.write() to display text.
I found that if I have the alert message box appearing before displayPage function, I get all text I wanted. Does anyone what's wrong with my code?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum