Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6321931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:14:13+00:00 2026-05-24T16:14:13+00:00

I have a jquery-ui modal popup that contains an iframe. It is called as

  • 0

I have a jquery-ui modal popup that contains an iframe. It is called as so:

    $("#modalDiv").dialog({
        modal: true,
        autoOpen: false,
        height: '400',
        width: '400',
        position: ['150', '200'],
        draggable: true,
        resizable: false,
        title: 'Loading...'
    });

    $('#modalIFrame').attr('src', url);
    $('#modalDiv').dialog('open');

The problem is that dragging the modal around is very sketchy. I understand it’s basically due to the iframe intercepting the drag event. I’m trying to implement the “iframeFix” solution, but it doesn’t seem to work. I am currently calling it from the popup as so:

    window.parent.$("#modalDiv").draggable("option", "iframeFix", true);

I also tried it from the parent page in these two ways:

    $("#modalDiv").draggable("option", "iframeFix", true);
    $("#modalIFrame").draggable("option", "iframeFix", true);

No luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:14:14+00:00Added an answer on May 24, 2026 at 4:14 pm

    I am unsure as to how the iframeFix works, but here is the solution that I use at the moment. I added a bug report on the jQuery UI website and it seems that they are working on this for the next release of jQuery UI.

    I notice that your dialog specifies that it is non-resizable, so the following should resolve your problem. If you required a resizable dialog then you would need to replace dialogdragstart with dialogdragstart dialogresizestart and likewise dialogdragstop with dialogdragstop dialogresizestop.

    $("#modalDiv")
        .dialog({
            modal    : true,
            autoOpen : false,
            height   : 400,
            width    : 400,
            position : [ 150, 200 ],
            draggable: true,
            resizable: false,
            title    : 'Loading...'
        })
        .bind('dialogdragstart', function() {
            var overlay = $(this).find('.hidden-dialog-overlay');
            if (!overlay.length) {
                overlay = $('<div class="hidden-dialog-overlay" style="position:absolute;top:0;left:0;right:0;bottom:0;z-order:100000;"></div>');
                overlay.appendTo(this);
            }
            else
                overlay.show();
        })
        .bind('dialogdragstop', function() {
            $(this).find('.hidden-dialog-overlay').hide();
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a modal popup built with jquery UI ($.dialog) that contains an iframe
I have a modal dialog plugin written in jquery, that binds to the click
I have an asp.net usercontrol that contains a jQuery UI Dialog Control. All works
i am running into a problem that i have a jquery modal popup in
I like to have a popup modal dialog that need to show the list
Hi have a JQuery modal popup that I load HTML into. I have the
I have a button with remote=>true that calls a popup (a jquery popup, not
I have a problem with Jquery UI modal dialogs. I have modal dialog (dialogA),
Ok, I am new to JQuery, I have a modal that has a asp:Literal
I'm looking into adding a jquery modal popup to my mvc project. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.