Mike Alsup wrote:
>> This is still like a proctologist performing an eye surgery
>>     
>
> How so?  You have control over everything in the settings object.  And
> you can add any properties to it that you wish.  So consider:
>
> $.ajax({
>     url: myUrl,
>     type: 'post',
>     indicatorId: '#indicator3'
> });
>
> $().ajaxSend(function(e,xhr,s) {
>     $(s.indicatorId).show();
> });
>
> $().ajaxComplete(function(e,xhr,s) {
>     $(s.indicatorId).hide();
> });
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>   
Hm... Still doesn't sound like fun :) I wish there could be a way to do
something like:

$.load(
       $("myid"),   
        url,
        params,  
       {
            onStart: function(){someLoader.show();},
             onEnd: function(){someLoader.hide();}
        }
    );
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to