Hi all,

I'm struggling with these global ajax callback handlers. The  
documentations states as follows:

        $("#msg").ajaxComplete(function(request, settings){
                        $(this).prepend('<p>Successfully loaded url: ' + 
settings.url + '</ 
p>');
                }
        );

Problem is that the objects passed to my function(s) are as follow:

Object type=ajaxSuccess
XMLHttpRequest readyState=4
Object global=true type=POST timeout=0

This is the result Firebug comes up with when using the following code:

        /*
                success
        */
        $('#report').ajaxSuccess(
        
                function(aaa, bbb, ccc)
                {
                        console.log(aaa);
                        console.log(bbb);
                        console.log(ccc);
                        
                        $(this).prepend('<p>Successfully loaded url: ' + 
ccc.url + '</p>');
                }
        );

I'm confused... imo the second and the third parameter are the  
request and settings variables. Am I missing something crucial? Or is  
this just a typo in the docs? It also applies to $('').ajaxError().

Martijn

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to