I don't really understand the logic,

You have multiple forms on a particular state in your ajax
application.  If the user takes action to change this state you want
to prompt them with the confirm window of "Changes have been made, are
you sure you want to discard?"  If they click yes- i want to discard,
then simply don't send the ajax request in the first place.
Otherwise, if you send it, then ask them if you'd rather discard
you're just making things more difficult.



On Apr 16, 9:18 am, Andrea Raimondi <andrea.raimo...@gmail.com> wrote:
> On Apr 16, 2:27 pm, Justin <justin.gir...@gmail.com> wrote:
> > Can you not just turn off the submission of ajax requests when the
> > confirm dialog appears?
> I'm not sure I understand what you mean.
> Plus, there's a problem I thought of only after having posted this:
> when I show a form, I also have the inherent data save AJAX.Request/
> Updater.
> This poses a constraint i.e. I have to abort all except the one I need
> and this is not achievable using global responders(because I can't
> tell beforehand which is the correct one to except for).
> > function showDialog()
> > {
> >          if no active requests
> >          {
> >                show dialog()
> >                turn off ajax requests()
> >                return true
> >          }
> >          return false
> > }
> Maybe I wasn't clear enough, it should be the other way around:
> function showDialog()
> {
>          if not confirm
>          {
>                abort ajax request()
>                return true
>          }
>          return false
> }
> Andrew
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to