You were right on the money! It works now. Thank you very much!
Luke Lutman wrote:
>
> 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
>>>> </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/
>
>
--
View this message in context:
http://www.nabble.com/Append-body-tf2419689.html#a6758540
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/