Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2004, 10:44 AM
Authorized User
 
Join Date: Nov 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display web page elements all at the same moment

I have observed that my asp page loads its’ contents, loading a part every few seconds, depending on the bandwidth of connection and the kilobytes it has to load.
This is not what I would like.
I would like to have my asp page loaded at once.
To be displayed only when all parts are in memory. Text, graphics , all to be displayed in browser at the same time, not by the time the browser loads them.
At this moment I wrote this topic, when someone visit my asp page, the browser firstly display small graphics, secondly text, and at last, big sized graphics.

Is there any code to add in order to face this problem?

Can you please help me solve this?
 
Old October 9th, 2004, 03:29 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

In your <body> element, add a style attribute and an onload attribute like this:
<body style='display:none;visibility:hidden' onload='this.style.visibility="visible";this.style .display="block"'>

I'm not absolutely sure this would work, but it sounds plausible.

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)
 
Old October 9th, 2004, 04:08 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Try setting Response.buffer = true at the start of the page's code.

--

Joe
 
Old October 10th, 2004, 11:44 AM
Authorized User
 
Join Date: Nov 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default


I tried Response.buffer = true.
It seems to do some important work, but isn't it perfect?

I see that the rendering of the page is as follows:
First it loads only a few elements of the page(say a banner at the top of the page) and then it really waits untill the full page loads and then it displays the page.
This happens in internet explorer browser and Opera browser that I tried.

It is far better from the previous situation but not perfect.
I have to say that I put the code to the very first line of the source code before <head>.
Also I must say that before this code line, the page loaded partialy through the time it loaded.
Now it is better.

Am I doing something wrong?
Is this the best we can achieve with minimum effort?






Similar Threads
Thread Thread Starter Forum Replies Last Post
display out of order html elements? chobo XSLT 2 April 1st, 2008 02:28 AM
Selecting Elements at Runtime to Display using XSL pnviv XSLT 1 November 22nd, 2007 05:08 AM
Default Namespace does not display elements. AjayLuthria XSLT 2 April 17th, 2007 10:11 AM
Opera Browser bad display of web page made with Dr karib Dreamweaver (all versions) 15 July 11th, 2004 05:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.