// wire the 'Loading...' ajax indicator
        $('<div id="busy">Loading...</div>')
            .ajaxStart(function() {$(this).show();})
            .ajaxStop(function() {$(this).hide();})
            .appendTo('#main');

That is from the form example that emulate a google like load hope that 
helps ;)
url: http://www.malsup.com/jquery/form/

Jason Yeckel
3spn LLC - Programmer

sdkester wrote:
> I tried appending the <body> with a div using the following in a js file:
>
> $("body").append('<div id="ajaxBusy" class="ajaxBusy"><p> ../../loading2.gif
> &nbsp;&nbsp;</p></div>');
>
> It is not working. Maybe I'm going about it wrong. I simply want to insert
> the above html anywhere in the body. Is my code wrong and/or am I approching
> it from the wrong angle.
>
> TIA,
>
> Shaun Kester
>   


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to