Re: Display "Please Wait" message in IFRAME while remote page load

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=

    #1

    Re: Display "Please Wait" message in IFRAME while remote page load

    Mister, any solution about it ? any sample code please ??

    thanks in advance
  • John Kotuby

    #2
    Re: Display "Please Wait" message in IFRAME while remote page load

    Yes I did find a solution. I haven't been into the newsgroups in a while so
    didn't see your question and I don't have email notification turned on. In
    effect I created a JavaScript function that handled the onload event of the
    IFRAME.

    <iframe width="99%" style="z-index:1" height="820px" marginheight="4 px"
    marginwidth="4p x" id="ifSearch" scrolling="no" src=http://example.com
    onload="iframe_ onload();"</iframe>

    <script type="text/jscript" language="javas cript">
    function iframe_onload()
    {
    var theWaitCell = document.getEle mentById('Wait1 ');
    theWaitCell.sty le.visibility = "hidden";
    }
    </script>

    What this does is just make the absolutely postioned animated gif become
    invisible once the target web page loaded into the IFRAME. Seems to work
    just fine.

    Here is the code for the absolutely positioned WaitCell.

    <div id="Wait1" style="visibili ty: visible; position: absolute; top: 40%;
    left: 40%">
    <table id="WaitTable1" >
    <tr>
    <td id="WaitCell1" align="center" valign="middle"
    style="backgrou nd-color: White;
    border-width: 4px; border-style: outset; color: #336699;
    height: 100px; width: 300px;
    font: arial bold 16px">
    <img alt="downloadin g" src="images/download.gif" />
    <br />
    Search Tool Initializing...
    </td>
    </tr>
    </table>
    </div>

    Hope this helps...

    "Alhambra Eidos Kiquenet" <AlhambraEidosK iquenet@discuss ions.microsoft. com>
    wrote in message news:BC4E94F9-8877-4A69-BF1B-0F8125A63980@mi crosoft.com...
    Mister, any solution about it ? any sample code please ??
    >
    thanks in advance

    Comment

    Working...