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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:35:26+00:00 2026-05-29T04:35:26+00:00

In docs I didn’t see such information. There are options to close dialog in

  • 0

In docs I didn’t see such information.

There are options to close dialog in such cases:

1) push Esc;

2) click on “OK” or “Close” buttons in the dialog.

But how to close dialog if click outside?

Thanks!

  • 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-29T04:35:29+00:00Added an answer on May 29, 2026 at 4:35 am

    Here are 2 other solutions for non-modal dialogs:

    If dialog is non-modal Method 1:
    method 1: http://jsfiddle.net/jasonday/xpkFf/

    // Close Pop-in If the user clicks anywhere else on the page
                         jQuery('body')
                          .bind(
                           'click',
                           function(e){
                            if(
                             jQuery('#dialog').dialog('isOpen')
                             && !jQuery(e.target).is('.ui-dialog, a')
                             && !jQuery(e.target).closest('.ui-dialog').length
                            ){
                             jQuery('#dialog').dialog('close');
                            }
                           }
                          );
    

    Non-Modal dialog Method 2:
    http://jsfiddle.net/jasonday/eccKr/

      $(function() {
                $( "#dialog" ).dialog({
                    autoOpen: false, 
                    minHeight: 100,
                    width: 342,
                    draggable: true,
                    resizable: false,
                    modal: false,
                    closeText: 'Close',
                      open: function() {
                          closedialog = 1;
                          $(document).bind('click', overlayclickclose);
                      },
                      focus: function() {
                          closedialog = 0;
                      },
                      close: function() {
                          $(document).unbind('click');
                      }
    
    
    
            });
    
             $('#linkID').click(function() {
                $('#dialog').dialog('open');
                closedialog = 0;
            });
    
             var closedialog;
    
              function overlayclickclose() {
                  if (closedialog) {
                      $('#dialog').dialog('close');
                  }
    
                  //set to one because click on dialog box sets to zero
                  closedialog = 1;
              }
    
    
      });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I looked over Python Docs (I may have misunderstood), but I didn't see that
The docs on this are pretty shoddy. There are a number of events you
I did a search for an HsbToRgb converter in the docs but didn't find
after doing a query with F() (see http://docs.djangoproject.com/en/dev/topics/db/queries/#query-expressions ), I save the object, but
I've been searching the answer but didn't find any information about this function except
The docs for Dictionary.TryGetValue say: When this method returns, [the value argument] contains the
MSDN docs say that only value types need boxing, but this does not apply
SQLite docs specifies that the preferred format for storing datetime values in the DB
http://docs.python.org/3.0/whatsnew/3.0.html says it lists whats new , but in my opinion, it only lists
The docs about openssl_sign() say that the signature is returned in the passed string

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.