Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
531 views
in Technique[技术] by (71.8m points)

browser - How to hide "page loading"/"transferring data" indicators and spinners caused by loading a (hidden) iframe

Is there any way to suppress the spinners and "transferring data" indicators that browsers show when a web page is loading?

I'm loading a document into a hidden iframe that will take a long time (10's of minutes). I don't want/need the user to be aware of this - it's just confusing to them to have the page look like it's still loading. SO I'd like to be able to disable all of the "page loading" activity that browsers normally show.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I eventually found a solution that will work for us. Instead of loading the document into a hidden iframe, we're using the "htmlfile" object described here: http://cometdaily.com/2007/11/18/ie-activexhtmlfile-transport-part-ii/

This solves the problem on IE platforms. And on non-IE platforms, we can use XMLHttpRequest + CORS + chunk encoding.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...