I am new to utilizing the Prototype library and I was wondering how it is possible to pass multiple arguments to the onSuccess/onFailure functions in Prototype. Let's say, for example:
new Ajax.Request('testurl',{
method: 'post',
parameters: {param1:"A", param2:"B", param3:"C"},
onSuccess: fnSccs,
onFailure: fnFail
})
In my success function fnSccs:
function fnSccs(response)
{
alert(response.responseText);
}
I am interested in passing a new argument to the fnSccs function. Can someone please provide guidance on how this can be achieved? Thank you.