Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: jQuery
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 10: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 at 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 at 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
0 DamithSL 495
1 Maciej Los 258
2 OriginalGriff 229
3 BillWoodruff 170
4 Zoltán Zörgő 165
0 OriginalGriff 7,934
1 DamithSL 6,084
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,174
4 Kornfeld Eliyahu Peter 4,539

Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2014
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