Displaying 2 results from an estimated 2 matches for "postformdata".
Did you mean:
platformdata
2006 Apr 10
10
Prototype Ajax - How to pass my own params to onComplete ?
...er
functions
//since ajax calls take us to other functions and we can''t seem to pass
it along
NamedActionElement = theElement;
//skip setting up my vars for the ajax call
//make the ajax call
var ajaxCall = new Ajax.Request( urlCall,
{method: ''post'',
postBody: postFormData,
onComplete: NamedActionResponseHandler}
);
}
function NamedActionResponseHandler(theResponse)
{
var elementThatTriggeredEvent = NamedActionElement;
//do stuff based on values i have encoded into the element and
//the data returned in theResponse
}
----------------------
As you can see, i h...
2006 Apr 10
1
RE: Prototype Ajax - How to pass my own params toonComplete ?
...r functions and we can''t seem
to
> pass
> it along
> NamedActionElement = theElement;
>
> //skip setting up my vars for the ajax call
>
> //make the ajax call
> var ajaxCall = new Ajax.Request( urlCall,
> {method: ''post'',
> postBody: postFormData,
> onComplete: NamedActionResponseHandler}
> );
> }
>
> function NamedActionResponseHandler(theResponse)
> {
> var elementThatTriggeredEvent = NamedActionElement;
>
> //do stuff based on values i have encoded into the element and
> //the data returned in theRespo...