> Why not in the onSuccess of the Ajax.Request?  That's what it's there
> for...  You'll never get the timing right 100% of the time with
> setTimeout.

I guess BearState have a problem with situation like this for example:

- you press submit in the form which call some function with ajax
request inside
- you need ajax response e.g. if username is taken or free
- if username is taken function should return false and stop sumbit
action
- waiting for "on Success" to happen is not really an option cause
validation function could finish earlier and submit this form without
really validating it

I think it is why people ask about delay - they want to have the
response still inside the same function where the request was
called ...not some time (even small time) later and outside it :)

quleczka

--~--~---------~--~----~------------~-------~--~----~
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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to