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 6055127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:13:47+00:00 2026-05-23T08:13:47+00:00

Currently we are using blockUI for getting modal iframes and jquery UI dialog for

  • 0

Currently we are using blockUI for getting modal iframes and jquery UI dialog for getting modal “yes/no”-dialogs.
The reasons why we are working with these two components are

  • they both rely on the jquery UI theme – so there’s no break between these 2 kinds of modal-elements.
  • it’s really easy to get “yes/no”-dialogs with the jquery UI dialog, and attaching events to those buttons
  • blockUI is really more lightweight

We are now looking for an alternative, as the code, which is used for getting modal iframes is a bit buggy:

var popups = {};

function showPopup(settings) {
    var target = settings.target;
    var $popup = popups[target];
    if ($popup) {
        $popup.attr('src', 'blankPage.html');
    }
    else {
        $popup = $('<iframe/>');
        $popup.appendTo('form');
        $popup.css('display', 'none');
        $popup.attr('frameborder', 0);
        $popup.dialog({
            'title': settings.title,
            'autoOpen': false,
            'modal': true,
            'width': settings.width,
            'height': settings.height,
            'draggable': false,
            'resizable': false,
            'open': function () {
                var $widget = $popup.dialog('widget');
                $widget.css('position', 'fixed');
                $widget.css('top', '50%');
                $widget.css('margin-top', $widget.height() / 2 * -1);
                $widget.css('left', '50%');
                $widget.css('margin-left', $widget.width() / 2 * -1);
                $popup.css('width', settings.width);
                $popup.css('padding', '0px');
                $popup.attr('src', settings.target);
            }
        });
        popups[target] = $popup;
    }
    $popup.dialog('open');
}

It works quite well, but when doing a click to open up one dialog, then closing, and reopening it, it shows the prior page some ms – this can be really tricky, if the modal-content has some flow itself.

Is there any chance to fix it, or any alternative script outside there which fits our needs?

  • 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-23T08:13:48+00:00Added an answer on May 23, 2026 at 8:13 am

    the solution is quite simple:

    var popups = {};
    
    function showPopup(settings) {
        var target = settings.target;
        var $popup = popups[target];
        if (!$popup) {
            $popup = $('<iframe/>');
            $popup.appendTo('form');
            $popup.css('display', 'none');
            $popup.attr('frameborder', 0);
            $popup.dialog({
                'title': settings.title,
                'autoOpen': false,
                'modal': true,
                'width': settings.width,
                'height': settings.height,
                'draggable': false,
                'resizable': false,
                'open': function () {
                    var $widget = $popup.dialog('widget');
                    $widget.css('position', 'fixed');
                    $widget.css('top', '50%');
                    $widget.css('margin-top', $widget.height() / 2 * -1);
                    $widget.css('left', '50%');
                    $widget.css('margin-left', $widget.width() / 2 * -1);
                    $popup.css('width', settings.width);
                    $popup.css('padding', '0px');
                    $popup.attr('src', settings.target);
                },
                'close': function () {
                    $popup.attr('src', 'blankPage.html');
                }
            });
            popups[target] = $popup;
        }
        $popup.dialog('open');
    }
    

    still … i’m quite interested in any alternative!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im currently using a plugin called Cycle for jQuery and would like to tweak
Im currently using jquery to link all td's to the edit link but i
Im currently using the JQuery UI extension for its search autocomplete. However, I need
so currently using ajax with JQuery .post to return a form populate with some
Currently using the JQuery UI autocomplete list function JQuery UI - Autocomplete . I
Im currently using Spring 3.0.x .. Im wondering what's wrong with these structures, where
I currently using jquery in my website but when i try to open this
Currently using HtmlUnit. Getting first login page is no problem, succesfully logging in, getting
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted

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.