Loading pages before the viewer sees them

liunx

Guest
Is there any way to keep users from viewing a page until it is fully loaded? And is there a way to indicate that the page is loading? (Without Flash or preloading techniques...)<br />
<br />
Here's the page I'm referring to:<br />
<br />
<!-- m --><a class="postlink" href="http://www.alternativeshift.com/profiles/main.html">http://www.alternativeshift.com/profiles/main.html</a><!-- m --><br />
<br />
I understand that there is an AsyncLoad property that can be changed, I just don't know how to change it...<!--content-->no you can't.<br />
<br />
it all depends on the users connection to the net. some have it fast and it seems to load all at once, but others have slow connections and it loads as it gets it. all you can do is preload the images.<!--content-->Scoutt's right...<br />
<br />
What I've suggested to people at work who want to do the same thing is to preload the entire page in a style="display:none;" div layer object but have that div layer code appear after some sort of msg stating something like " Loading, please wait... "...Using an iframe would achieve the result or if the page is a php, you could have it echo or print the page contents after the <div> tag...<br />
<br />
Basically:<br />
<br />
mypage.html:<br />
------------<br />
<br />
<html><br />
<he blah blah<br />
<br />
<div id="waitingMSG" style="position:absolute;display='';z-index:200;"><br />
<br />
<table width="150" height="30" rules="none"><br />
<tr><br />
&nbsp;&nbsp;<td>Please Wait while the Page Loads...</td><br />
</tr><br />
</table><br />
<br />
</div><br />
<br />
<br />
Then add the following if it's just an html that you're putting togeather on the fly:<br />
<br />
<div id="hiddenPage1" style="position:absolute;display='none';z-index:4;"><br />
<br />
<iframe width="100%" height="100%" src=http://www.htmlforums.com/archive/index.php/"thepagetodl.html" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"><br />
<br />
</div><br />
<br />
<br />
OR!! add the following if it's a php that will be sending the html code to the user:<br />
<br />
<div id="hiddenPage1" style="position:absolute;display='none';z-index:4;"><br />
<br />
<?<br />
print"my html page content here...<br>";<br />
?><br />
<br />
</div><br />
<br />
<br />
<br />
You'll need to play around with the code of course to get everything looking just right but if you choose to go that path, I believe this should help you see where to start...<!--content-->On the AsyncLoad subject, I did a search on lycos and found a lot of matches, most of them had xml and visual basic related results in the search...<br />
<br />
I did a second search for AsyncLoad and webpage and got:<br />
&nbsp;&nbsp;http://www.drbob42.com/Delphi5/examin22.htm<br />
<br />
It looks like it is a feature inherient of xml, try doing a search on that page and u'll find the subject on it for AsyncLoad...<!--content-->
 
Back
Top