Re: [jQuery] Append body
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 discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
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 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 discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
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=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 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 discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Append-body-tf2419689.html#a6758146 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
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=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 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 discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
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=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 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 discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com 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 discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Append body
// 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 ;) 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=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 am I approching it from the wrong angle. TIA, Shaun Kester ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Append body
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 am I approching it from the wrong angle. TIA, Shaun Kester -- View this message in context: http://www.nabble.com/Append-body-tf2419689.html#a6746057 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/