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

see here :
http://www.prototypejs.org/api/class/addMethods

and add them at that point...

This would be one solution

Regards
Alex



----- Original Message ----- 
From: "Cameron McCloud" <cameron.mccl...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Monday, March 02, 2009 1:42 PM
Subject: [Proto-Scripty] Using Ajax.Responders onCreate to modify HTTP POST 
params


>
> 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 & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to