<?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: Unknown runtime error in Internet explorer?</title>
	<atom:link href="http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/</link>
	<description></description>
	<lastBuildDate>Thu, 19 Nov 2009 13:46:48 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ben</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-30929</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-30929</guid>
		<description>Let&#039;s try that again. Another data point:

In IE7, I was trying to replace a table via AJAX:

&lt;pre&gt;
getElementById(”table”.innerHTML = http.responseText;
…
  &lt;table id=&quot;table&quot;&gt;
    ...
  &lt;/table&gt;

…
&lt;/pre&gt;

and IE7 gave this stupid “unknown runtime error” message.

When I enclosed the table in a &lt;div&gt;:

&lt;pre&gt;
&lt;div id=&quot;tableContainer&quot;&gt;
  &lt;table id=&quot;table&quot;&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/pre&gt;

then *both* of these worked great:

&lt;pre&gt;
getElementById(”table”).innerHTML = http.responseText;

getElementById(”tableContainer”).innerHTML = http.responseText;
&lt;/pre&gt;

That is, I could replace both the table and the table container by their IDs.

HTH

– ben</description>
		<content:encoded><![CDATA[<p>Let&#8217;s try that again. Another data point:</p>
<p>In IE7, I was trying to replace a table via AJAX:</p>
<p><pre><pre>
getElementById(”table”.innerHTML = http.responseText;
…
&nbsp;&nbsp;&lt;table id=&quot;table&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;...
&nbsp;&nbsp;&lt;/table&gt;

…
</pre></pre></p>
<p>and IE7 gave this stupid “unknown runtime error” message.</p>
<p>When I enclosed the table in a &lt;div&gt;:</p>
<p><pre><pre>
&lt;div id=&quot;tableContainer&quot;&gt;
&nbsp;&nbsp;&lt;table id=&quot;table&quot;&gt;
&nbsp;&nbsp;&lt;/table&gt;
&lt;/div&gt;
</pre></pre></p>
<p>then *both* of these worked great:</p>
<p><pre><pre>
getElementById(”table”).innerHTML = http.responseText;

getElementById(”tableContainer”).innerHTML = http.responseText;
</pre></pre></p>
<p>That is, I could replace both the table and the table container by their IDs.</p>
<p>HTH</p>
<p>– ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-30928</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-30928</guid>
		<description>Another data point:

In IE7, I was trying to replace a table via AJAX:

  getElementById(&quot;table&quot;.innerHTML = http.responseText;
   ...
   ...
  
   ...
  

and IE7 gave this error.

When I enclosed the table in a :

 &lt;div id=&quot;tableContainer&quot;
  
   ...
  
 

then *both* of these worked:

    getElementById(&quot;table&quot;.innerHTML = http.responseText; 

    getElementById(&quot;tableContainer&quot;.innerHTML = http.responseText;

HTH 

-- ben</description>
		<content:encoded><![CDATA[<p>Another data point:</p>
<p>In IE7, I was trying to replace a table via AJAX:</p>
<p>  getElementById(&#8221;table&#8221;.innerHTML = http.responseText;<br />
   &#8230;<br />
   &#8230;</p>
<p>   &#8230;</p>
<p>and IE7 gave this error.</p>
<p>When I enclosed the table in a :</p>
<p> &lt;div id=&quot;tableContainer&quot;</p>
<p>   &#8230;</p>
<p>then *both* of these worked:</p>
<p>    getElementById(&#8221;table&#8221;.innerHTML = http.responseText; </p>
<p>    getElementById(&#8221;tableContainer&#8221;.innerHTML = http.responseText;</p>
<p>HTH </p>
<p>&#8211; ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Ewering</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-30775</link>
		<dc:creator>Alexander Ewering</dc:creator>
		<pubDate>Mon, 09 Nov 2009 08:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-30775</guid>
		<description>No need for fanboyish Microsoft Bashing, please.

And BTW, MSIE8 still does this (same error message), so it&#039;s not an MSIE6 issue.</description>
		<content:encoded><![CDATA[<p>No need for fanboyish Microsoft Bashing, please.</p>
<p>And BTW, MSIE8 still does this (same error message), so it&#8217;s not an MSIE6 issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepika</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-29946</link>
		<dc:creator>Deepika</dc:creator>
		<pubDate>Thu, 22 Oct 2009 13:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-29946</guid>
		<description>Hi,

I am facing same problem.I am using div but still error is coming.
Please help me out.

My code is

&lt;pre&gt;
function updatepage(str,arg){
	
	//alert(str);str=html element

	var obj=document.getElementById(&#039;sub3&#039;);
	try
	{
		obj.innerHTML=str;
	}
	catch(ex)
	{
	alert(ex.message); // never displayed
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am facing same problem.I am using div but still error is coming.<br />
Please help me out.</p>
<p>My code is</p>
<p><pre><pre>
function updatepage(str,arg){
&nbsp;&nbsp;
&nbsp;&nbsp;//alert(str);str=html element

&nbsp;&nbsp;var obj=document.getElementById(&#039;sub3&#039;);
&nbsp;&nbsp;try
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;obj.innerHTML=str;
&nbsp;&nbsp;}
&nbsp;&nbsp;catch(ex)
&nbsp;&nbsp;{
&nbsp;&nbsp;alert(ex.message); // never displayed
&nbsp;&nbsp;}
}
</pre></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russell Dodd</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-28672</link>
		<dc:creator>Russell Dodd</dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-28672</guid>
		<description>Thanks, my error was I had a &lt;a tag surrounding div tag (it was a same page #anchor tag); closed the tag before starting the div and all was well</description>
		<content:encoded><![CDATA[<p>Thanks, my error was I had a &lt;a tag surrounding div tag (it was a same page #anchor tag); closed the tag before starting the div and all was well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: agnor</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-28541</link>
		<dc:creator>agnor</dc:creator>
		<pubDate>Wed, 19 Aug 2009 18:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-28541</guid>
		<description>big help, thanks for the post.  Dumb to require email addresses for comments, though.</description>
		<content:encoded><![CDATA[<p>big help, thanks for the post.  Dumb to require email addresses for comments, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-28148</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Sun, 02 Aug 2009 03:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-28148</guid>
		<description>I googled &#039;getelementbyid Ie6 runtime error&#039; and this was the first search result.  I had exactly the same problem you are having in your blog post and I thank you for pointing out this solution.

-Justin</description>
		<content:encoded><![CDATA[<p>I googled &#8216;getelementbyid Ie6 runtime error&#8217; and this was the first search result.  I had exactly the same problem you are having in your blog post and I thank you for pointing out this solution.</p>
<p>-Justin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kverkagambo</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-27682</link>
		<dc:creator>Kverkagambo</dc:creator>
		<pubDate>Sun, 12 Jul 2009 12:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-27682</guid>
		<description>I just had this problem in IE8, when I was trying to put Ajax form in a DIV. I just had forgotten that form tags where already opened around the div.
They could at least rename this to &quot;Web standarts error&quot; or something, it would be more helpful.</description>
		<content:encoded><![CDATA[<p>I just had this problem in IE8, when I was trying to put Ajax form in a DIV. I just had forgotten that form tags where already opened around the div.<br />
They could at least rename this to &#8220;Web standarts error&#8221; or something, it would be more helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-27090</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 18 Jun 2009 13:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-27090</guid>
		<description>When in doubt, switch from Ps to DIVs. No idea why that has any bearing on anything because what I was doing was using Prototype&#039;s &quot;wrap&quot; function to wrap an A in another DIV then insert a second DIV inside the first div ahead of the A (an absolutely-positioned overlay over the original A which contained an image, using the &quot;wrapper&quot; div which had its position set to relative to allow it to line up correctly).

It worked fine in some instances but not in others (got the &quot;unknown error&quot; or NO ERROR AT ALL (zero feedback, it just refused to do what I was telling it to -- nice!) depending on how I wrote it).

I finally noticed that the ONLY difference was that the ones that worked had a DIV as the immediate ancestor of the A but the ones that didn&#039;t had a P as the ancestor. Switching to DIVs fixed it (just plain old P and DIV tags in the HTML, no CSS applied, not written in dynamically...).

Why the parent element had any effect at all I can&#039;t imagine because all of the DOM changes were further down the tree, and the wrap wasn&#039;t the problem, it was inserting that second div which was then inside a div so it shouldn&#039;t have had this problem, but it is what it is.</description>
		<content:encoded><![CDATA[<p>When in doubt, switch from Ps to DIVs. No idea why that has any bearing on anything because what I was doing was using Prototype&#8217;s &#8220;wrap&#8221; function to wrap an A in another DIV then insert a second DIV inside the first div ahead of the A (an absolutely-positioned overlay over the original A which contained an image, using the &#8220;wrapper&#8221; div which had its position set to relative to allow it to line up correctly).</p>
<p>It worked fine in some instances but not in others (got the &#8220;unknown error&#8221; or NO ERROR AT ALL (zero feedback, it just refused to do what I was telling it to &#8212; nice!) depending on how I wrote it).</p>
<p>I finally noticed that the ONLY difference was that the ones that worked had a DIV as the immediate ancestor of the A but the ones that didn&#8217;t had a P as the ancestor. Switching to DIVs fixed it (just plain old P and DIV tags in the HTML, no CSS applied, not written in dynamically&#8230;).</p>
<p>Why the parent element had any effect at all I can&#8217;t imagine because all of the DOM changes were further down the tree, and the wrap wasn&#8217;t the problem, it was inserting that second div which was then inside a div so it shouldn&#8217;t have had this problem, but it is what it is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-2/#comment-27048</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 17 Jun 2009 20:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-27048</guid>
		<description>Nice that you can nest block elements inside an [a] in the HTML but can&#039;t do it by updating via JS. IE8&#039;s out now, can&#039;t MS kill 6? Normally I&#039;d hate so say &quot;Microsoft, please force an update on me via Windows Update&quot; but this is one exception to that.</description>
		<content:encoded><![CDATA[<p>Nice that you can nest block elements inside an [a] in the HTML but can&#8217;t do it by updating via JS. IE8&#8217;s out now, can&#8217;t MS kill 6? Normally I&#8217;d hate so say &#8220;Microsoft, please force an update on me via Windows Update&#8221; but this is one exception to that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
