Doesn't this work?
if (IsDefined(window.showModalDialog))
{
//Handles IE6 & 7
retVal= window.showModalDialog(sPage,argsArr, sFeatures);
}
else
{
//Handles Firefox
retVal=window.open(sPage,sFeatures+"modal=yes");
}
Then in the window you can set:
Sorry if this is a double post but the first time it gave me an error,
This should work for you and creates a real Modal now if your looking
for one of the fancier modals that are not actually windows use the
callbacks like they described.
if (IsDefined(window.showModalDialog))
{
thank you all for the answers... basically I will have to work with
the callbacks! ;-)
On Nov 15, 3:31 pm, Wagner <[EMAIL PROTECTED]> wrote:
> Hey friends... of course when I say about stop the flow of code, I
> mean to stop the flow of code that called the window, the flow would
> be passed to t
Hey friends... of course when I say about stop the flow of code, I
mean to stop the flow of code that called the window, the flow would
be passed to the window being drawn, the internal events of window,
etc, etc, when I close the window, the flow should go back to the
point that called the modal
Wagner,
Javascript's flow is single threaded, and a delay in execution (I/O
starvation) will halt the entire script including timeouts and
intervals. As such, timeouts and intervals are "kind of asynchronous",
in that the script hypervisor is polling for these each "tick", and
will direct progr
This is a coding approach issue, rather than a modal window issue. To
me at least.
When I needed behavior like this, I wrote my code in such a way that a
function was called that set up the environment and then opened the
modal window. Now that the modal window is open, I know that nothing
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 inter
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 e
If the flow of code stopped, there would be no way to close the window.
- Richard
On Fri, Nov 14, 2008 at 3: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 t
9 matches
Mail list logo