Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSuccessWrapper(orig, transport)
- {
- // ...whatever your special onSuccess stuff is...
- // Chain to original onSuccess handler
- orig(transport);
- }
- function makeRequest(url, options) {
- options.onSuccess = (options.onSuccess || Prototype.emptyFunction).wrap(onSuccessWrapper);
- return new Ajax.Request(url, options);
- }
Add Comment
Please, Sign In to add comment