There is nothing wrong with your code. You may have another issue.
--
View this message in context:
http://www.nabble.com/Append-body-tf2419689.html#a6755973
Sent from the JQuery mailing list archive at Nabble.com.
___
jQuery mailing list
sdkester schrieb:
I tried appending the body with a div using the following in a js file:
$(body).append('div id=ajaxBusy class=ajaxBusyp ../../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
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
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
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
// wire the 'Loading...' ajax indicator
$('div id=busyLoading.../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 ;)
I tried appending the body with a div using the following in a js file:
$(body).append('div id=ajaxBusy class=ajaxBusyp ../../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