Click here to Skip to main content
13,092,862 members (70,406 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i use this jQurey function for load page in my web site how can i make a simple loding for show to user that my page is loding

			var addr=$(this).attr('page');
Posted 6-Jan-13 9:41am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You show an animated gif, probably in a div that makes the whole screen darker, then hide it when this process ends.
farham_heidari 6-Jan-13 15:43pm
how can i understand that process ends? plz show me part of code that calculate the time of loading
Christian Graus 6-Jan-13 15:45pm
If you want it to know when the whole page finishes loading, you need to hide it in the loaded event of the new form. Otherwise you have no way to know when it's loaded all the images, etc. Otherwise, I'd assume you'd think it was over when these methods finished running. It's toolbar, not tolbar, by the way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100