PDA

View Full Version : Javascript Error in MSIE: 'document.getElementByld[...]



Swiffer
07-10-2006, 12:05 AM
Hi everyone,

I'm implementing Dynamic Drive's 'Dynamic Ajax Content' code into a webpage. It works great on every browser except on MSIE 6.0.

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
is the script I'm using.

This is the page that is giving me an error:
http://www.americanbabies.net/v3/news.html

The error is:
Error: 'document.getElementByld[...]' is null or not an object

On most other browsers, the "news" content page automatically loads. On MSIE, it is blank beneath the menu and I receive this error.

Any help will be very much appreciated!!

Thanks,
Adam

benslayton
07-10-2006, 02:46 AM
please dont double post.
http://www.dynamicdrive.com/forums/showthread.php?t=11023

Swiffer
07-10-2006, 03:02 AM
I started this thread before realizing it belonged under the DD-related forum. I would have deleted it if there was an option, but wanted to make sure it was in the right place.

jscheuer1
07-10-2006, 05:38 AM
This:


<script type="text/javascript">
ajaxpage('first.html', 'contentarea')
</script>

needs to go after this:


<div id="contentarea"></div>

Swiffer
07-10-2006, 12:10 PM
jscheuer1,

thank you for your response! this page now loads beautifully. :D