What I mean to say is, a modal isn't about stopping flow of code. It's about restricting interaction to a certain set of elements, until the interaction is complete. So it allows interaction with elements in that modal (requiring code flow - remember javascript is single-threaded), preventing interaction with all others, until it's closed.
If you're wanting to call a modal like a function and have it return a value (think confirmation dialog), it won't work to block like that. An alternative pattern is to provide a callback function that will resume execution after the modal is closed. - Richard On Fri, Nov 14, 2008 at 4:48 PM, Eric Martin <[EMAIL PROTECTED]> wrote: > > I guess it depends on what you mean by "flow of code must STOP". > > On Nov 14, 12:11 pm, Wagner <[EMAIL PROTECTED]> wrote: > > Is it possible to make a window like jqModal, etc, etc, BUT WITH A > > REAL MODAL way of work? > > > > I mean.... the flow of code must STOP until the window be closed! Does > > it exist? >