|
»
»
»
Check if dialog is still open?
|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Check if dialog is still open?How do I check if a dialog is still open or not? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@... To unsubscribe from this group, send email to jquery-ui-unsubscribe@... For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Check if dialog is still open?Not sure if this is a helpful answer, but the latest version fixes earlier bugs if you open it while it's already open. In other words, it doesn't do anything in that situation. If you need this info for some reason besides that, you could check for a visible item with one of the fundamental dialog classes, or some content of yours that you know will be inside the dialog. HTH, s On Jul 23, 10:21 am, Scott <polyp...@...> wrote: > How do I check if a dialog is still open or not? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@... To unsubscribe from this group, send email to jquery-ui-unsubscribe@... For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Check if dialog is still open?Actually it was because I added some code to trigger a "beforeclose" event and since jquery always returns itself I couldn't be returned whether the event returned false or not. I realized what I wanted to do I could do in the "close" event. Although I can see needing to easily check if one is opened or not for the future. I saw "this.isOpen" set throughout the code but I couldn't figure out how to access it from outside the plugin, exposing that boolean flag would be very nice. On Jul 24, 6:06 am, sparkpool <sparkp...@...> wrote: > Not sure if this is a helpful answer, but the latest version fixes > earlier bugs if you open it while it's already open. In other words, > it doesn't do anything in that situation. > > If you need this info for some reason besides that, you could check > for a visible item with one of the fundamental dialog classes, or some > content of yours that you know will be inside the dialog. > > HTH, > s > > On Jul 23, 10:21 am, Scott <polyp...@...> wrote: > > > How do I check if a dialog is still open or not? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@... To unsubscribe from this group, send email to jquery-ui-unsubscribe@... For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Check if dialog is still open?There are a few ways to do it, the original way was something like: $("#dialog").parents(".ui-dialog").is(":visible") With the newer version you can also do $("#dialog").data("dialog").isOpen On Thu, Jul 24, 2008 at 11:04 AM, Scott <polypill@...> wrote: > > Actually it was because I added some code to trigger a "beforeclose" > event and since jquery always returns itself I couldn't be returned > whether the event returned false or not. I realized what I wanted to > do I could do in the "close" event. Although I can see needing to > easily check if one is opened or not for the future. I saw > "this.isOpen" set throughout the code but I couldn't figure out how to > access it from outside the plugin, exposing that boolean flag would be > very nice. > > > > > > On Jul 24, 6:06 am, sparkpool <sparkp...@...> wrote: >> Not sure if this is a helpful answer, but the latest version fixes >> earlier bugs if you open it while it's already open. In other words, >> it doesn't do anything in that situation. >> >> If you need this info for some reason besides that, you could check >> for a visible item with one of the fundamental dialog classes, or some >> content of yours that you know will be inside the dialog. >> >> HTH, >> s >> >> On Jul 23, 10:21 am, Scott <polyp...@...> wrote: >> >> > How do I check if a dialog is still open or not? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@... To unsubscribe from this group, send email to jquery-ui-unsubscribe@... For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |