you could addMethods the whole ajax class and add your own parameters ..

see here :

and add them at that point...

This would be one solution


----- Original Message ----- 
From: "Cameron McCloud" <>
To: "Prototype &" <>
Sent: Monday, March 02, 2009 1:42 PM
Subject: [Proto-Scripty] Using Ajax.Responders onCreate to modify HTTP POST 

> Hi,
> I want to be able to intercept every AJAX call in Prototype and modify
> the POST parameters sent to the server. I've created an Ajax.Responder
> for this using onCreate. It does intercept the call, and I see the
> parameters modified in FireBug, but the modified parameters aren't
> sent to the server. The documentation does say that the onCreate is
> called after the parameters are processed - does this mean that I
> can't modify them?
> Is there a better way to do this?
> BTW, the reason I want to modify the parameters is to add an extra one
> to do with authentication in  Rails.
> Cam.
> >

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to