Click here to Skip to main content
11,490,007 members (59,548 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: MVC dialog JQueryUI
I want to close a jquery dialogbox without blocking the UI or reloading the page.
On closing a jquery dialog like this:

buttons: {
                       "Close": function () {

the dialog gets hideen but,the UI behind gets blocked. hence i cant click on other links..
Also tried
buttons: {
                        "Close": function () {

that also doesnt solve the issue. Please suggest!!
Posted 19-Nov-12 3:41am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You should do something like this:

var allOptions = options ? options : {};
    allOptions.close = function () {
        {do something}

There is no need to overriding buttons. Add event handler for close.
Also if you not doing anything in that function there is no need to add it at all. Dialog should do fine by it self.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 600
1 Andy Lanng 233
2 OriginalGriff 208
3 Maciej Los 160
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,608
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,419
3 Maciej Los 3,106
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100