Are you running your code before the dom is ready?

Try this:

$(document).ready(function(){
        $("body").append('<div id="ajaxBusy" class="ajaxBusy">...</div>');
});


Luke

-- 
zinc Roe Design
www.zincroe.com
(647) 477-6016


sdkester wrote:
> Thank you for the suggestion. I tried that and get an operation aborted error
> from IE and it won't let me load the page. Any other ideas?
> 
> 
> Klaus Hartl wrote:
>>
>>
>> sdkester schrieb:
>>> 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.
>> I once had strange problems with 'body' in IE. The following then worked 
>> for me:
>>
>> $(document.body).append( ... );
>>
>>
>> -- Klaus
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>>
> 

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

Reply via email to