<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Javascript Dom Quirk In IE using getElementById</title> <atom:link href="http://deadlytechnology.com/web-development-tips/ie7-javascript/feed/" rel="self" type="application/rss+xml" /><link>http://deadlytechnology.com/web-development-tips/ie7-javascript/</link> <description></description> <lastBuildDate>Tue, 07 Sep 2010 10:25:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: tonman</title><link>http://deadlytechnology.com/web-development-tips/ie7-javascript/comment-page-1/#comment-468</link> <dc:creator>tonman</dc:creator> <pubDate>Sun, 02 Aug 2009 02:07:31 +0000</pubDate> <guid
isPermaLink="false">http://deadlytechnology.com/?p=114#comment-468</guid> <description>Helpful post.  Please note that even if you have (html)commented out other objects from your code like so &lt;!--some button etc--&gt;, and those have the same id, you will continue to get this bug.
If you have been debugging, when you are ready to go live, remember to delete all those commented out objects which are not needed, or rename their ids/names.</description> <content:encoded><![CDATA[<p>Helpful post.  Please note that even if you have (html)commented out other objects from your code like so , and those have the same id, you will continue to get this bug.<br
/> If you have been debugging, when you are ready to go live, remember to delete all those commented out objects which are not needed, or rename their ids/names.</p> ]]></content:encoded> </item> <item><title>By: franktank</title><link>http://deadlytechnology.com/web-development-tips/ie7-javascript/comment-page-1/#comment-323</link> <dc:creator>franktank</dc:creator> <pubDate>Mon, 09 Jun 2008 12:03:19 +0000</pubDate> <guid
isPermaLink="false">http://deadlytechnology.com/?p=114#comment-323</guid> <description>I think you should check that you are viewing the generated source code of the page after the javascript function is called, to ensure you are not viewing the original source code of the page.I would also use firebug to inspect the DOM of the page, look for a generated div.You should not have more than one element on the page with the same id, this will confuse the javascript no doubt, and as mentioned in this post you should not have a form with a name attribute that clashes with your id either.Try playing around with other methods to retrieve the divs you add to the page, you could add classes to all of them then retrieve all the elements by class name (I&#039;d use a library for this like YUI) and make sure that the divs are being added to the page and you can retrieve them. Then modify this method to add an id or what have you to each div which is unique and try retrieving divs with their unique ids.Hope that helps</description> <content:encoded><![CDATA[<p>I think you should check that you are viewing the generated source code of the page after the javascript function is called, to ensure you are not viewing the original source code of the page.</p><p>I would also use firebug to inspect the DOM of the page, look for a generated div.</p><p>You should not have more than one element on the page with the same id, this will confuse the javascript no doubt, and as mentioned in this post you should not have a form with a name attribute that clashes with your id either.</p><p>Try playing around with other methods to retrieve the divs you add to the page, you could add classes to all of them then retrieve all the elements by class name (I&#8217;d use a library for this like YUI) and make sure that the divs are being added to the page and you can retrieve them. Then modify this method to add an id or what have you to each div which is unique and try retrieving divs with their unique ids.</p><p>Hope that helps</p> ]]></content:encoded> </item> <item><title>By: Barry</title><link>http://deadlytechnology.com/web-development-tips/ie7-javascript/comment-page-1/#comment-324</link> <dc:creator>Barry</dc:creator> <pubDate>Tue, 03 Jun 2008 21:18:13 +0000</pubDate> <guid
isPermaLink="false">http://deadlytechnology.com/?p=114#comment-324</guid> <description>HiSaid plain &amp; simple:
I&#039;ve created an insertBefore() div on my page.
Together with the above I created a &quot;delete&quot; button calling a function to hide this created div(e.g myCreatedDiv).
The delete link works fine with div&#039;s that was loaded with the page, but javascript displays an Error: Object Required when trying to delete(hide) the dynamically created div&#039;s.
I also had a look at the source code of the page after the insertBefore() function was called, but couldn&#039;t see the created div(it displays well on the page though)
My opinion is that the getElementById function cannot find the specified div (id = &quot;myCreatedDiv&quot;)created with insertBefore(), but it can find div&#039;s that was loaded with the page.How do i get past this error?</description> <content:encoded><![CDATA[<p>Hi</p><p>Said plain &amp; simple:<br
/> I&#8217;ve created an insertBefore() div on my page.<br
/> Together with the above I created a &#8220;delete&#8221; button calling a function to hide this created div(e.g myCreatedDiv).<br
/> The delete link works fine with div&#8217;s that was loaded with the page, but javascript displays an Error: Object Required when trying to delete(hide) the dynamically created div&#8217;s.<br
/> I also had a look at the source code of the page after the insertBefore() function was called, but couldn&#8217;t see the created div(it displays well on the page though)<br
/> My opinion is that the getElementById function cannot find the specified div (id = &#8220;myCreatedDiv&#8221;)created with insertBefore(), but it can find div&#8217;s that was loaded with the page.</p><p>How do i get past this error?</p> ]]></content:encoded> </item> <item><title>By: Max</title><link>http://deadlytechnology.com/web-development-tips/ie7-javascript/comment-page-1/#comment-322</link> <dc:creator>Max</dc:creator> <pubDate>Tue, 29 Apr 2008 17:48:14 +0000</pubDate> <guid
isPermaLink="false">http://deadlytechnology.com/?p=114#comment-322</guid> <description>As reported here:http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.htmlThis bug does affect IE6 and IE7, but is mostly fixed in the Beta of IE8 (there are still some issues)Opera fixed their bug (a copy of the broken IE behavior) in version 9.25PS If this is the first time you have been bitten by an IE bug like this, you&#039;ll want to do some serious research on Web Bug Track.  IE tops our list of DOM bugs.</description> <content:encoded><![CDATA[<p>As reported here:</p><p><a
href="http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html" rel="nofollow">http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html</a></p><p>This bug does affect IE6 and IE7, but is mostly fixed in the Beta of IE8 (there are still some issues)</p><p>Opera fixed their bug (a copy of the broken IE behavior) in version 9.25</p><p>PS If this is the first time you have been bitten by an IE bug like this, you&#8217;ll want to do some serious research on Web Bug Track.  IE tops our list of DOM bugs.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk

Served from: deadlytechnology.com @ 2010-09-08 00:33:24 -->