Beware as the Form.serialize function behaves differently than the
submit function.

On 29/11/06, Jiří Pavlovský <[EMAIL PROTECTED]> wrote:
> Tom Cowin wrote:
> > > Don't submit the form. Serialize it and send the data via an Ajax call.
> > > Then you have the freedom to handle the server response whatever way you
> > > like.
> > Thanks Jiri - Do you have a URL or an example?
> >
> There are many ways. For example:
>
>
> var data = Form.serialize('my_form_id');
>
> var opt = {
>   // Use POST
>     method: 'post',
>       postBody: data,
>      onSuccess: function(originalRequest) {
>
>     var result = eval('(' + originalRequest.responseText + ')');
>
>     do_something_here_with_the_server_response
>
> }}
>
>   new Ajax.Request(my_url, opt);
>
>
>
>
> P.S.
> Please do not topost :)
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
>
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to