On Nov 26, 9:18 pm, Tony <[EMAIL PROTECTED]> wrote:
> Yes, I did and it waits for me to type continue.
>
> Just checked Prototype docs and it seems Ajax.Request is asynch so I
> guess the complete/success states merely relate to making the call
> rather than getting anything back from the callee.
>
That's incorrect. onSuccess/onComplete are called when a response is
received from the remote server (half the point of those callbacks is
to do something with the response from the server)
Fred
> Yes, setting 'asynchronous: false' in the request does hold up the
> onSuccess. And it enables any error to be trapped by the onFailure.
>
> So, although it is considered bad practice, seems I have no option but
> to use a synchronous call to the proxy_controller otherwise the
> success/failure does not work.
>
> now back to the send_data issue :)
>
> T.
>
> On Nov 26, 8:58 pm, Frederick Cheung <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > As in the onComplete was called ? did you start the server with the --
> > debugger option ?
>
> > Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---