
February 4th, 2000, 05:19 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
<i><b>Originally posted by : Matthew Brock (mattb@ecology.com)</b></i><br />>I have an ASP application which generally takes about 20 secs to load up its data at the beginning. What I would like to do is to show a html doc while the asp page in question is loading - can someone tell me how to do this ?<br /><br /><br />I don't have any code off hand, but you could always try loading a page using hidden frames,<br />then use the onLoad() command inside the <BODY> tags. Some pseudocode:<br /><br />PAGE.HTML<br />frame1 = page you want shown during loading<br />frame2 = page you want to load<br /><br />frame1 is shown, frame2 is hidden<br /><br />FRAME1.HTML<br />Contains the stuff you want to show the user immediately.<br /><br />FRAME2.ASP<br /><% Load all your asp stuff %><br /><SCRIPT><br />function showMe() {<br /> document.window.frame1 = document.window.frame2<br />}<br /><BODY onLoad(showMe())><br /><br />I'm not sure if this will work, but it's worth a try...<br />
|