开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜