Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: httpwebwitch
In this very old thread [webmasterworld.com...] Xoc mentions in message 4 that he is buffering all the content and then flushing it when the page is complete, but that he may change this in the future. Well its been 4 years and i'd like to know if anyone has managed this!
I have an ASP page that produces XML and returns this to the client along with an XSL file to transform the data into something a that looks a little nicer. My problem comes from the long load times that occur when the database calls get heavy.
I'd like to send out the XML data node after node using Response.Flush. However I think because im using IE (im developing for an Intranet) and its automatic transformation that this isn't going to work. It still waits for ages before anything appears in the client browser.
Any ideas would be appreciated?
(Even if its telling me it can't be done, because im doing this in XML I can't use any other buffering tricks to get progress bars etc...)
So I think the XML is parsed by Internet Explorer using the the XSL file - does that sound right?
My guess is that you have your Response.Flush in your loop. That is of course a guess since I have not seen your ASP code. I can only assume from your comments that your response.flush method is looping.
Here's a solution: If your XML gets displayed node by node from top to bottom, then you could try SAX (Simple API for XML) to display the XML in your ASP.
Cheers brucec i'll take a look at SAX!