User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,901 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,596 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 5424 | Replies: 3
Reply
Join Date: Aug 2005
Posts: 100
Reputation: martinkorner is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
martinkorner's Avatar
martinkorner martinkorner is offline Offline
Junior Poster

Question Page Loading

  #1  
Feb 23rd, 2006
Would it be possible to display only a message e.g. "Page Loading..." until the page has fully loaded, then display the fully loaded page?

I don't know if this can be done with Javascript, css or html.

Would it also be possible to show what percent of the page has loaded e.g.

Loading, Please Wait...
75% Loaded

Thanks
Martin
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 354
Reputation: DanceInstructor is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 12
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Page Loading

  #2  
Feb 23rd, 2006
AJAX will do this, but it's probably overkill for most situations. How long is it taking the page to load?
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,879
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 107
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Page Loading

  #3  
Feb 23rd, 2006
A quick word of advice: If you need a "loading ..." notice while a webpage loads, it's taking too long, and the surfer will just leave without giving it a second thought. Here's an idea.

Create a background .gif image for the webpage that has your logo or says loading or some sort. Then, put all of the page content in a 100% wide and tall table that occupies the full browser window and has a white background. Web browsers don't display the content of tables until everything within them has fully finished loading. Therefore, it will give the impression of just seeing the background gif and suddenly all of the page contents appear at once.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Page Loading

  #4  
Feb 23rd, 2006
Right... anything you COULD do would necessarily make your overall load time slower. Get a faster host.

On some e-Commerce systems I've designed, where there is a significant task (such as generating a print-quality PDF proof), I pre-load a "please wait" message or GIF, with visibility set to hidden. When the page submits, the submit handler/validation routine first toggles the visiblity of this, then submits.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC