Using IFrame

  •  03-17-2011, 8:58 AM

    Using IFrame

    I have a problem using iframe

    When using an IFrame, hiding the div containing the iframe and show it again, the upload button stop working.
    Reproduce the problem: I added a test page to the demo:
     

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untitled Page</title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div><input type="button" value="hide" onclick="javacript:hide();" /></div>

    <div id="div1" >

    frame 1<br />

    <iframe src="multiple-files-upload.aspx" height="300px" width="500px"></iframe>

    </div>

    <script type="text/javascript">

    function hide()

    {

    var d1 = document.getElementById('div1');

    if(d1.style.display == '')

    { d1.style.display = 'none';}

    else

    {d1.style.display = '';}

    }

    </script>

    </form>

    </body>

    </html>
     
    How can I solve this problem?
     
    Thanks in advance
    tirza
View Complete Thread