Hi,

> It does mean that if you have code further down the list of things to
> do which is reliant on the result of the request, then it will have to
> wait as well.
>
> So, that code would have to be part of the onSuccess too.
> Hope this is understandable.

I'm new to Ajax as well but I understand how this is working.Still I
have problem with situation described in my post above - how to take
care about this things "that have to wait as well" in this case? Can
you help me with this?

I have Event.observe to the form submit action with function which
should check if the value typed in the on of input fields is already
in the database or not. This function use Ajax.request to check this
and have true/false response.

How can I make this to DO NOT submit the form before ajax response
will come? ... I have all necessary processing in onSuccess but there
is no chance to execute it cause form is submitted earlier.

What is standard way to deal with this kind of things?

This is only example I have problem with. I understand basic rule of
working with Ajax and it asynchronous nature :)

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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to