Ask Experts Questions for FREE Help !
Ask
    afagh's Avatar
    afagh Posts: 1, Reputation: 1
    New Member
     
    #1

    Feb 26, 2010, 11:11 PM
    How show wating to load web site
    Hi I have a website that it has several pages in iframe and till they loaded , it takes long time, so I want showe something such as progress bar or other things till all pages loaded, I'll apritiate if you can help me.
    afagh.
    objectundefined's Avatar
    objectundefined Posts: 45, Reputation: 2
    Site Dev
     
    #2

    Feb 28, 2010, 02:32 PM
    There's a pretty easy way to get that done. First off, the hacky way: Fire off a script at the end of your child documents.

    For instance:
    Code:
    <html>
    <head>
    </head>
    <body></body>
    </html>
    <script>
    parent.hideProgressIndicator();
    </script>
    Then, in your parent document you'd reference the function hideProgressIndicator(), with which you'd set the progress indicator (usually an animated GIF) to 'display:none' and the iframe to 'display:block'...


    Now the jQuery way using a callback:

    Code:
    
        $(document.body).append('<IFRAME id="myId" style="display:none">');
        $('iframe#myId').attr('src', url);
    
        $('iframe#myId').load(function() 
        {
    
       $('#progress_img').hide();
       $('iframe#myId').show()
        });

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Web site [ 1 Answers ]

Looking for a web site to find cleaning services contract

What web site can I go to? [ 5 Answers ]

I would like to know what web site can I go to for information on the matter of Ohio law to see if it's that simple for him to do what he is saying because he said he send papers to California already giving up rights to the kids and he send them to the childsupport office already signed giving up...

Looking for a web site [ 5 Answers ]

Hello there.. I'm looking for aweb site named askme.com.. I was a member, but I became an official site for other stuff not related to answeing questions.. any 1 got an idea what happened to it?

Setting up web site and web shop [ 4 Answers ]

Hi Guys. Can anyone tell me the best way to set up a web site with web shop. I have looked online but overloaded with conflicting information. What things do I need and in what order?

Web site [ 4 Answers ]

OK so I want to know how to make my own web site how on earth do you do it I need help Does getting a website free or do I have to pay money for like the space I am using well I need help and can some one help me pleassssss!! :[


View more questions Search