search for: elementthattriggeredevent

Displaying 2 results from an estimated 2 matches for "elementthattriggeredevent".

2006 Apr 10
10
Prototype Ajax - How to pass my own params to onComplete ?
...lement = 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 have to have this global variable so my onComplete function can know which element triggered the event. Is there a way to pass my ow...
2006 Apr 10
1
RE: Prototype Ajax - How to pass my own params toonComplete ?
...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 have to have this global variable so my onComplete > function can know which element trigg...