I think the problem is that in your onComplete method you are only
expecting one parameter. The parameter is the request which would be
the same as the return value from you "new Ajax.Request" call.
Instead I think you want the response.
So the method should be changed to:
onComplete: func
Hi all. I'm writing some kind of filter that i want passby my all AJAX request,
and I stuck. I create object and pass him to Ajax Responders
like this:
var myGlobalHandlers = {
onCreate: function(){
Element.show('loading');
},
onComplete: function(request) {
alert