RE: Dial-up performance issue?

Subject: RE: Dial-up performance issue?
From: "Doug Howell" <doug@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Aug 2000 17:07:11 -0400
Many thanks to Anthony, Chris, Jeni and Michael for your help with this
problem. In case it can help anyone else, here's what was wrong:

I was using an object in my HTML page(with IE 5.0 and the July MSXML
parser), like so:

<object id="XMLDocument" width="0" height="0"
  classid="clsid:f5078f32-c551-11d3-89b9-0000f81fe221">
  <param name="async" value="false">
  <param name="validateOnParse" value="false">
</object>

I was using a variable to get a reference to this object (and another for
the XSL document), like this:

  gobjXML = document.all['XMLDocument'];

This is exactly like the example in Michael's XSLT book, about page 693. My
application worked when run from the local hard drive, but not when run on
the server, whether I was opening the page at work or over a dial-up
connection.

Anthony pointed out that I need to set the async property of the object
variable to false just prior to each load function call, like this:

  gobjXML.async = false;
  gobjXML.load('openaccess.xml');

This line is missing from the book's example. Apparently this must be done
even though the async param of the object was set to false. As Chris pointed
out, the object seems to ignore async and validateOnParse.

Anyway, this made the difference, and the application works now! (Now I have
a much better chance of justifying to my boss the fact that I spent most of
my time on this last week.) Thank you, thank you, thank you. You folks are
the greatest. If I can ever help you out, let me know. (I do windows. But
not very well.)

On a further note, Chris suggested avoiding the HTML object tag altogether
by doing something like this:

  gobjXML = new ActiveXObject("Microsoft.XMLDOM");
  gobjXML.validateOnParse = false;
  gobjXML.async = false;
  gobjXML.load('openaccess.xml');

Thanks again!
Doug

Doug Howell
Information Architect, BGI-IT
734.747.7471 or 477.2857



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread