Hi Henry,
Just add the following:
postBody: Form.serialize(yourFormId),
to your request.
On 10/1/07, Henry Park <[EMAIL PROTECTED]> wrote:
new Ajax.Request('Login!show.action',
{
method:'post',
postBody: Form.serialize(yourFormId),
onSuccess: function(transport){
var response = transport.responseText || "no response text";
target_span.innerHTML = response;
},
onFailure: function(){ alert('Something went wrong...') }
});
Cheers,
Randy
--
Oscar Developer
McMaster University
75 Frid Street, Hamilton, ON
905 525 9140 x27735
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]