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

  • Home
  • SEARCH
  • 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 8092633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:19:37+00:00 2026-06-05T20:19:37+00:00

I previously did some popups / dialogs that I’ve now got regression error in

  • 0

I previously did some popups / dialogs that I’ve now got regression error in () and want to recode to use JQuery for the DIVs / popups / dialogs. Moving to Jquery will be an advantage since we can enable repositioning and resize for dialogs / popups which we can’t if the popup is just a DIV which places itself over the other elements.

Now I wonder what is the “best” way to make popups / dialogs / DIV appear with JQuery? I’d rather not add a plugin and only include the basic JQuery file. can you tell me how to do it?

The current page makes something like a popup but it is not repositionable.

  • 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-06-05T20:19:38+00:00Added an answer on June 5, 2026 at 8:19 pm

    The way I would do this is create a .popup class that contains the basic layout features for the popup. Then add this class to a hidden <div> at the top of the page.

    Then when a popup is needed, attatch the draggable and resizable attributes of jQuery to it. After that, load the popup’s content with a .get() request from a page dedicated for popup content and then .show() it.

    Example

    CSS

    .popup 
    {
        display:none;
        position:absolute;
        // some other nice styling features
    }    
    

    HTML

    <body>
    <div class='popup'></div>
    ...
    page content
    ...
    </body>
    

    Javascript

    function popup(){
        // for the draggable you may want to specify the drag handle like only the title of the popup
        var popup = $('.popup');
    
        popup.draggable();
        popup.resizable();
    
        $.get('/getPopup.php?action=theKindOfPopupRequested', function(data) {        
            popup.html(data);
            popup.show('fast');
        });
    }
    

    Sources:

    http://jqueryui.com/demos/resizable/

    http://jqueryui.com/demos/draggable/

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

Sidebar

Related Questions

I ran some tests , and the data point that the jQuery inArray() is
My DBA just lost some development work that he did on our development database.
Please refer my previous post here . I did changes accordingly but getting error.
Previously, I used to use MFC collection classes such CArray and CMap . After
Previously we had desktop applications but given the fact that accessing the server (either
previously i had custom tableviewcell and was loading from Nib.in that i have specified
It appears after I did some reconfigruation to my GAE / django project namely
I am using jQuery 1.7.1 I am trying to optimize some jQuery and need
I have a working Facebook app that most users will use just once. Leading
I previously asked a similar question on this topic a while back and got

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.