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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:07:36+00:00 2026-05-24T07:07:36+00:00

I am using jQuery modal dialog in my web application. I have used one

  • 0

I am using jQuery modal dialog in my web application. I have used one button (cancel) and want to close dialog by clicking on it but it’s not working, while disable & destroy is working.
any idea please….

Code :

$("#dialog-form" ).dialog({
          ....
         buttons: {
             Cancel: function() {
          $( this ).dialog( "close" );  // dialog doesn't close

         //   $( this ).dialog( "destroy" ); (it's working)
         //   $( this ).dialog( "disable" ); (it's working)
 } 
  • 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-24T07:07:38+00:00Added an answer on May 24, 2026 at 7:07 am

    I realized now, it was my silly question but i hope it’d be helpful to someone. The problem i was getting due to missing of several files.e.g : There is a CSS file eithier we can use by linking directly or just download the file and put it in your web application and then link to your own server.

    solution 1 :

    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/ui.all.css"/>
    

    solotion 2 : just download the css file and put it in your server. as i downloaded a css file called jquery.ui.all.cssand put this inside of my webApplication/lib. Now i can linked

    <link rel="stylesheet" href="my_web_app/lib/jquery.ui.all.css"/>
    

    but here is a big deal, you need to check the file if it is importing some other files or not, as i went through this file and found that it is importing two other files.

    @import "jquery.ui.base.css";
    @import "jquery.ui.theme.css";
    

    This is what i was making mistake, again i downloaded these two files separately and put it in the same folder of my web app (my_web-App/lib/…..).

    Problem due to jQuery file : make sure you always use the updated version of jQuery file. This is where i got stuck but finally i found that i am using the old version (jQuery v1.3.2) of jQuery file while i was needed latest one (jQuery v1.6.2).

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

Sidebar

Related Questions

I'm using jquery for modal dialogs. I want to open model dialog from one
I am using jquery modal dialog, but the look of the dialog is other
I am using jQuery UI dialog for modal popups. I have some iframes in
My Needs: I am using a jquery modal dialog. I have some buttons on
I am using a jQuery modal dialog in my ruby on rails application. Here's
I have a div tag in my modal dialog built using JQuery like this:
I have a issue with Jquery Modal dialog being called from a button inside
I'm using a jQuery modal dialog in my ASP .NET MVC 3 application. It
I am using jquery UI's dialog widget to render a modal dialog in my
I am trying to open a modal jquery dialog using jquery 1.4 and jquery-ui-1.8rc3.custom.js

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.