Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2006
    Posts
    71
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Jquery .dialog not opening up in IE

    Hi all,

    I have a combo box on one page that opens a pdf in a new page like so

    <option class="opener" value="filename.php?filename">File # 1 </option>

    A new page opens up which contains data inside an iframe that I waiting to load before closing the dialog box. It shows up in FF and Chrome for a brief moment but never in IE.

    Here is the jquery code I am using which is baffling me at this point.

    $(document).ready(function() {
    var $dialog = $('<div></div>')
    .html('This file is quite large please wait while it loads.')
    .dialog({
    autoOpen: false,
    resizable: false,
    show: "fade",
    hide: "fade",
    title: 'Loading PDF File...'
    });
    $('.opener').ready(function() {
    $dialog.dialog('open');
    });
    $('#loaded').load(function() {
    $dialog.dialog("close");
    });
    });

    <iframe src="largesizefile.jpg" width="100%" height="100%" id="loaded" scrolling="no" frameborder="0"></iframe>



    Any help would save me from a bad weekend hehehe. Thanks!

  • #2
    New Coder
    Join Date
    Nov 2006
    Posts
    71
    Thanks
    12
    Thanked 0 Times in 0 Posts
    I noticed that I had the close with in the document ready not really sure if this is what was closing the box automatically. I shortened up the script and just created a <div id="example">Message here</div>. The issue I am having is that the <iframe id="loaded" src="somefile.jpg"></iframe> once loaded is not closing the modal box.

    $(document).ready(function(){
    $("#example").dialog({modal: true});
    });

    $('#loaded').load(function() {
    $("#example").dialog("close");
    });


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •