•
•
•
•
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 374,458 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 2,794 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: 5200 | Replies: 3
![]() |
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
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
AJAX will do this, but it's probably overkill for most situations. How long is it taking the page to load?
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation:
Rep Power: 32
Solved Threads: 108
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.
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.
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- update the page without changing it? (Site Layout and Usability)
- Help with IE page loading problem (Web Browsers)
- I think I'm going to cry... (JSP)
- INCOMPLETE LOADING OF PAGES - "ACTION CANCELED" BITS ALL OVER? (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: log in script saves cookie
- Next Thread: Javascript problems with IE6



Linear Mode