Hide HTML page before IE's done loading?

L

Lars Netzel

I have a pretty big page that on some sloconnections load about 50% of the
page and then before the page has finished loading the rest the user changes
a dropdownbox that causes a postback and then I of course if face with an
Invalid Viewstate problem.

How can I prevent the browser from shoign the page before it's fully loaded
on the client?

I'm sure I've heared abotu this before but I cannot find anything when
searching on it

best regards
/Lars
 
C

cannontrodder

Put the whole thing i a div, make it hidden and use a javascript onLoad
event handler unhide it. This might work with the body tag itself but
if you do it with a div, you could have one div that says "Please
wait..." and once the whole thing is loaded, switch that off and your
main div on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top