<?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>
	<pubDate>Tue, 06 Jan 2009 01:44:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Frank Herrman</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-58/#comment-21461</link>
		<dc:creator>Frank Herrman</dc:creator>
		<pubDate>Fri, 21 Nov 2008 13:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-21461</guid>
		<description>This post and all the comments helped me out a lot. I was facing a similar problem with a Ajax call. I was filling up an div element 'description'. It raised the unkown runtime error because there was another element with that name...being &#60;meta name="description" value="etc" /&#62;. So IE doesn't make any distinction between name and ID attributes.</description>
		<content:encoded><![CDATA[<p>This post and all the comments helped me out a lot. I was facing a similar problem with a Ajax call. I was filling up an div element &#8216;description&#8217;. It raised the unkown runtime error because there was another element with that name&#8230;being &lt;meta name=&#8221;description&#8221; value=&#8221;etc&#8221; /&gt;. So IE doesn&#8217;t make any distinction between name and ID attributes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-56/#comment-20440</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 20 Oct 2008 12:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-20440</guid>
		<description>I was very pleased to discover your page, as I was approaching the hair-tearing stage with one of these. Super-helful, that 'runtime error' alert, isn?t it? Especially with the approximate way that IE guesses at line numbers.

Mine was a variation, though. Still Explorer only, so far (no issues in FF, Safari). And still an 'innerHTML' DOM issue, AFAIK.

Not a 'block' level issue, this time. I thought it could be, since the 'display' attribute could be flipping to 'inline' as things are switched visible and invisible, but I tried flipping it explicitly to 'block' (and it?s a 'div', not a '' or a ''. And my script is running the same line to a stack of other 'div's, and they all worked fine.

I made it go away when I spotted that 2 'div's had similar IDs (one called 'SkinSize', the other called 'Skins'). Thanks, Bill. I thought the idea of IDs was that they worked on exact equivalence, not loose similarity. So it looks as though IE read the first 4 characters (maybe with a case-insensitive peek at char 5) and thought, ?close enough? then chucked an error when it hit a conflict. That?s a frankly terrifying discovery. Three cheers for Redmond, eh? 

Thanks for the pointer. I?m sure there?s more lurking in the murky depths behind this little puzzle. (Sorry for the long post)</description>
		<content:encoded><![CDATA[<p>I was very pleased to discover your page, as I was approaching the hair-tearing stage with one of these. Super-helful, that &#8216;runtime error&#8217; alert, isn?t it? Especially with the approximate way that IE guesses at line numbers.</p>
<p>Mine was a variation, though. Still Explorer only, so far (no issues in FF, Safari). And still an &#8216;innerHTML&#8217; DOM issue, AFAIK.</p>
<p>Not a &#8216;block&#8217; level issue, this time. I thought it could be, since the &#8216;display&#8217; attribute could be flipping to &#8216;inline&#8217; as things are switched visible and invisible, but I tried flipping it explicitly to &#8216;block&#8217; (and it?s a &#8216;div&#8217;, not a &#8221; or a &#8221;. And my script is running the same line to a stack of other &#8216;div&#8217;s, and they all worked fine.</p>
<p>I made it go away when I spotted that 2 &#8216;div&#8217;s had similar IDs (one called &#8216;SkinSize&#8217;, the other called &#8216;Skins&#8217;). Thanks, Bill. I thought the idea of IDs was that they worked on exact equivalence, not loose similarity. So it looks as though IE read the first 4 characters (maybe with a case-insensitive peek at char 5) and thought, ?close enough? then chucked an error when it hit a conflict. That?s a frankly terrifying discovery. Three cheers for Redmond, eh? </p>
<p>Thanks for the pointer. I?m sure there?s more lurking in the murky depths behind this little puzzle. (Sorry for the long post)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: easyEye</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-55/#comment-19069</link>
		<dc:creator>easyEye</dc:creator>
		<pubDate>Wed, 17 Sep 2008 10:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-19069</guid>
		<description>glJakaL: Your testpage also worked here. I also made a testpage with my specific needs, and that also worked here. When I inserted it all into my html-templates (that's how my site works) it didnot work when the input came from ajax, nor when i bypassed ajax by putting the ajax-output in a string. Now when i saved the generated html with the ajax-output in a string, it worked again! 

Hence, the problem lies with the way the document is read in. I have seen the problem before in sereveral browsers, when i was working with xml and xslt.</description>
		<content:encoded><![CDATA[<p>glJakaL: Your testpage also worked here. I also made a testpage with my specific needs, and that also worked here. When I inserted it all into my html-templates (that&#8217;s how my site works) it didnot work when the input came from ajax, nor when i bypassed ajax by putting the ajax-output in a string. Now when i saved the generated html with the ajax-output in a string, it worked again! </p>
<p>Hence, the problem lies with the way the document is read in. I have seen the problem before in sereveral browsers, when i was working with xml and xslt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glJakaL</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-55/#comment-18801</link>
		<dc:creator>glJakaL</dc:creator>
		<pubDate>Wed, 10 Sep 2008 16:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18801</guid>
		<description>easyEye: I added the html closing tag, but it still works for me.
dreamluverz/easyeye: Both of you are using ajax to load the content. Do you use any specific library to do the ajax stuff? And if you don't, can you share a simple test case (perhaps using &lt;a href="http://pastie.org" rel="nofollow"&gt;pastie&lt;/a&gt; so the code looks readable)?
Have you tried calling the ajax page directly from the browser to see what exactly is being returned?</description>
		<content:encoded><![CDATA[<p>easyEye: I added the html closing tag, but it still works for me.<br />
dreamluverz/easyeye: Both of you are using ajax to load the content. Do you use any specific library to do the ajax stuff? And if you don&#8217;t, can you share a simple test case (perhaps using <a href="http://pastie.org" rel="nofollow">pastie</a> so the code looks readable)?<br />
Have you tried calling the ajax page directly from the browser to see what exactly is being returned?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dreamluverz</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-55/#comment-18786</link>
		<dc:creator>dreamluverz</dc:creator>
		<pubDate>Wed, 10 Sep 2008 07:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18786</guid>
		<description>hi there. juz got back to your site. Can you try using ajax and the return value is a form to be Placed on a div using innerHTML.</description>
		<content:encoded><![CDATA[<p>hi there. juz got back to your site. Can you try using ajax and the return value is a form to be Placed on a div using innerHTML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: easyEye</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-54/#comment-18525</link>
		<dc:creator>easyEye</dc:creator>
		<pubDate>Fri, 05 Sep 2008 12:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18525</guid>
		<description>Grpmf, your page works here, but your page has no html-closing tag.

My HTML-to-insert comes through AJAX and the HTML-to-insert-in is generated (by Apache/2.0.58 (iSeries) Server op 10.0.1.24 Poort 8057)

When I work around the AJAX the error remains, so probably the fact that my html is generated makes the error come forward.

When I download a generated page and work around the AJAX call, everything works fine in MSIE7.

My workaround for generated pages:
&lt;pre&gt;&lt;br /&gt;
function insertHTML(target_reference, source_text){&lt;br /&gt;
&#160;&#160;//msie7 cannot digest anchors from ajax in generated pages&lt;br /&gt;
&#160;&#160;&lt;br /&gt;
&#160;&#160;try {&lt;br /&gt;
&#160;&#160;&#160;&#160;target_reference.innerHTML = source_text;&lt;br /&gt;
&#160;&#160;}&lt;br /&gt;
&#160;&#160;catch(e) {&lt;br /&gt;
&#160;&#160;&#160;&#160;//setup temporary tags; abuse the obsure &#039;u&#039;-tag&lt;br /&gt;
&#160;&#160;&#160;&#160;rep1 = source_text.replace(/\&#38;lt;a /g,&#039;\&#38;lt;u &#039;); &lt;br /&gt;
&#160;&#160;&#160;&#160;rep2 = rep1.replace(/\/g,&#039;\&#039;);&lt;br /&gt;
&#160;&#160;&#160;&#160;target_reference.innerHTML = rep2;&lt;br /&gt;
&#160;&#160;&#160;&#160;false_anchors = target_reference.getElementsByTagName(&#039;u&#039;);&lt;br /&gt;
&#160;&#160;&#160;&#160;//setup new anchor-tags&lt;br /&gt;
&#160;&#160;&#160;&#160;for (c=0; c-1; c&#45;-) false_anchors[c].parentNode.removeChild(false_anchors[c]);&lt;br /&gt;
&#160;&#160;}&lt;br /&gt;
}&lt;br /&gt;
&lt;/pre&gt;
Drawbacks: you cannot use the 'u'-tag in the insert, MSIE7 will ignore floating styles, and the order of HTML-elements is changed</description>
		<content:encoded><![CDATA[<p>Grpmf, your page works here, but your page has no html-closing tag.</p>
<p>My HTML-to-insert comes through AJAX and the HTML-to-insert-in is generated (by Apache/2.0.58 (iSeries) Server op 10.0.1.24 Poort 8057)</p>
<p>When I work around the AJAX the error remains, so probably the fact that my html is generated makes the error come forward.</p>
<p>When I download a generated page and work around the AJAX call, everything works fine in MSIE7.</p>
<p>My workaround for generated pages:</p>
<pre>
function insertHTML(target_reference, source_text){
&nbsp;&nbsp;//msie7 cannot digest anchors from ajax in generated pages
&nbsp;&nbsp;
&nbsp;&nbsp;try {
&nbsp;&nbsp;&nbsp;&nbsp;target_reference.innerHTML = source_text;
&nbsp;&nbsp;}
&nbsp;&nbsp;catch(e) {
&nbsp;&nbsp;&nbsp;&nbsp;//setup temporary tags; abuse the obsure &#039;u&#039;-tag
&nbsp;&nbsp;&nbsp;&nbsp;rep1 = source_text.replace(/\&amp;lt;a /g,&#039;\&amp;lt;u &#039;); 
&nbsp;&nbsp;&nbsp;&nbsp;rep2 = rep1.replace(/\/g,&#039;\&#039;);
&nbsp;&nbsp;&nbsp;&nbsp;target_reference.innerHTML = rep2;
&nbsp;&nbsp;&nbsp;&nbsp;false_anchors = target_reference.getElementsByTagName(&#039;u&#039;);
&nbsp;&nbsp;&nbsp;&nbsp;//setup new anchor-tags
&nbsp;&nbsp;&nbsp;&nbsp;for (c=0; c-1; c&#45;-) false_anchors[c].parentNode.removeChild(false_anchors[c]);
&nbsp;&nbsp;}
}
</pre>
<p>Drawbacks: you cannot use the &#8216;u&#8217;-tag in the insert, MSIE7 will ignore floating styles, and the order of HTML-elements is changed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glJakaL</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-54/#comment-18512</link>
		<dc:creator>glJakaL</dc:creator>
		<pubDate>Fri, 05 Sep 2008 08:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18512</guid>
		<description>easyEye, gimp: strangely, it works for me...
I have uploaded &lt;a href="http://www.gljakal.com/blog/test_append.html" rel="nofollow"&gt;a test page&lt;/a&gt;, can you tell me if it's not working for you?</description>
		<content:encoded><![CDATA[<p>easyEye, gimp: strangely, it works for me&#8230;<br />
I have uploaded <a href="http://www.gljakal.com/blog/test_append.html" rel="nofollow">a test page</a>, can you tell me if it&#8217;s not working for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gimp</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-54/#comment-18480</link>
		<dc:creator>gimp</dc:creator>
		<pubDate>Thu, 04 Sep 2008 17:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18480</guid>
		<description>Bah as well!

I’m having the same prob, trying to use innerHTML to put an anchor tag inside a div tag... I’d like to avoid appendChild if I can :(</description>
		<content:encoded><![CDATA[<p>Bah as well!</p>
<p>I’m having the same prob, trying to use innerHTML to put an anchor tag inside a div tag&#8230; I’d like to avoid appendChild if I can <img src='http://www.gljakal.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gimp</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-54/#comment-18479</link>
		<dc:creator>gimp</dc:creator>
		<pubDate>Thu, 04 Sep 2008 17:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18479</guid>
		<description>I'm having the same prob, trying to use innerHTML to put an &#60;a&#62; inside a  ... I'd like to avoid appendChild if I can :(</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same prob, trying to use innerHTML to put an &lt;a&gt; inside a  &#8230; I&#8217;d like to avoid appendChild if I can <img src='http://www.gljakal.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: easyEye</title>
		<link>http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/comment-page-54/#comment-18474</link>
		<dc:creator>easyEye</dc:creator>
		<pubDate>Thu, 04 Sep 2008 15:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/#comment-18474</guid>
		<description>Bah! I meant: Try for yourself: document.getElementById('calendar_layer").innerHTML = '&#60;a href="javascript:next_month()"&#62;Next Month&#60;/a&#62;</description>
		<content:encoded><![CDATA[<p>Bah! I meant: Try for yourself: document.getElementById(&#8217;calendar_layer&#8221;).innerHTML = &#8216;&lt;a href=&#8221;javascript:next_month()&#8221;&gt;Next Month&lt;/a&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
