Title: check if window is open Post by: gordis gmbh on February 13, 2015, 09:55:01 AM Hello,
How can I find if a non-modal window is currently in open state? The window may or may not have the focus. I am wanting this to update the content the window (by reopening it) if it is already open. Thanks. Title: Re: check if window is open Post by: yamilbracho on February 13, 2015, 06:33:56 PM Just an idea....
Subclass Window class and add an instance variable, say openFlag, then overwrite onOpen, setting openFlag to true and onClose, setting openFlag to false HTH, Yamil Title: Re: check if window is open Post by: stworthy on February 13, 2015, 09:04:54 PM The 'closed' option can indicate whether the window is closed.
Code: var opts = $('w').window('options'); Title: SOLVED: Re: check if window is open Post by: gordis gmbh on February 16, 2015, 09:12:32 AM The 'closed' option solves the issue! Nice to know that this option is updated on window close/open. Thanks very much.
|