开发者

Waiting for a page to load and then displaying it, without an iframe?

开发者 https://www.devze.com 2023-02-03 09:57 出处:网络
Hey! Let\'s say I have a big application in one .html file. Another file, that should be pretty lightweight, is the \"loader\" page. The small file loads and then calls the big file while displaying s

Hey! Let's say I have a big application in one .html file. Another file, that should be pretty lightweight, is the "loader" page. The small file loads and then calls the big file while displaying something like "loading"...

I know I can use a hidden iFrame and unhide it on it's onload event. However, I don't like开发者_如何学Go iFrames. So how could I do this without one? AJAX maybe? Any other way?


http://www.queness.com/post/328/a-simple-ajax-driven-website-with-jqueryphp

Gives exactly what you are suggesting? With a little loading div on ajaxRequest and closing it on ajaxSucces.


Could you have a container div with the css set to display:none; and then switch it to display:block; on the onload event.

0

精彩评论

暂无评论...
验证码 换一张
取 消