WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Proposal for non-modal versions of modal prompts

Re: Proposal for non-modal versions of modal prompts

by Darin Fisher-3 :: Rate this Message:

| View in Thread

On Tue, Mar 20, 2012 at 4:05 PM, Glenn Maynard <glenn@...> wrote:

> On Mon, Mar 19, 2012 at 3:38 PM, Jochen Eisinger <jochen@...
> >wrote:
>
> > I'd like to put forward a proposal for extending the modal prompts
> > (alert/confirm/prompt) with an optional callback parameter. If the
> optional
> > callback parameter is present, the javascript execution would resume
> > immediately. The callback will be invoked when the dialog that doesn't
> need
> > to be browser modal now, is closed.
> >
>
> I'm not sure this accomplishes anything.  It won't discourage people from
> using the blocking dialog calls, because generally the entire reason people
> use them is because the blocking is convenient.  People who don't need that
> are likely to just use any old dialog overlay script that they can style to
> match their page.
>
>
While it would be nice to completely discourage use of blocking alert()
calls,
I don't think that is really the goal here.  The goal is to provide a super
simple
non-blocking set of dialog calls.  The alternative requires a fair bit of
code to
construct an overlay, etc.

-Darin

 « Return to Thread: Proposal for non-modal versions of modal prompts