[Javascript] [OT ]popup window close
Mike Dougherty
mdougherty at pbp.com
Thu May 13 11:30:43 CDT 2004
Could the results page be partially rendered on the client before the data shows up?
asp example:
<body onLoad="document.getElementById('WaitWindow').style.display='none' ">
<span id='WaitWindow'>Please wait (about 3 minutes)</span>
<% Response.Flush %>
<table... (query results)
The idea being that the results page will show "so far" and then hide the wait window after the
data is finished loading...
Another idea would be to render the results page completely without the data, then use javascript
to populate the 'data area' of the page with the results of an XMLHTTP call. (make a page that
returns only the table) Using this approach, you could do a fancy "waiting" messages using timers
(or other distractions to keep the user's attention occupied)
Have you considered a method for caching this query result? (If the data is likely to be called
more than once, it might be useful to cache it for later reuse) I digress...
More information about the Javascript
mailing list