<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using InnerHTML correctly within IE and Firefox</title>
	<link>http://www.kenvillines.com/archives/000069.html</link>
	<description>Web development, programming, e-commerce, graphic design, Life and more.</description>
	<pubDate>Fri, 21 Nov 2008 08:14:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Pritam Paul</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-25572</link>
		<pubDate>Thu, 13 Mar 2008 14:57:32 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-25572</guid>
					<description>You are great, this worked for me. Even using to DOJO AJAX this worked well.</description>
		<content:encoded><![CDATA[<p>You are great, this worked for me. Even using to DOJO AJAX this worked well.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rey</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-18877</link>
		<pubDate>Sat, 26 Jan 2008 14:32:38 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-18877</guid>
					<description>When I test this one on firefox and its OK, when I test it on IE and its not functional... Can anyone help me with this!? but when I test on the other computer it works on IE4+...

function GetXmlHttpObject(handler){
    var objXMLHttp=null
    if (window.XMLHttpRequest){
        objXMLHttp=new XMLHttpRequest()
    }else if (window.ActiveXObject){
        objXMLHttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;)
    }
    return objXMLHttp
}
function builderChanged(){
    if (xmlHttp.readyState==4 &amp;#124;&amp;#124; xmlHttp.readyState==&quot;complete&quot;){
        document.getElementById('vill').innerHTML= xmlHttp.responseText;
    }
}
function htmlDataBuilder(url, qStr){
    if (url.length==0){
        document.getElementById(&quot;vill&quot;).innerHTML=&quot;&quot;; 
        return;
    }
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null){
        alert (&quot;Browser does not support HTTP Request&quot;);
        return;
    }

    url=url+&quot;?&quot;+qStr; 
    url=url+&quot;&amp;#38;sid=&quot;+Math.random();
    xmlHttp.onreadystatechange=builderChanged;
    xmlHttp.open(&quot;GET&quot;,url,true) ;
    xmlHttp.send(null);
}</description>
		<content:encoded><![CDATA[<p>When I test this one on firefox and its OK, when I test it on IE and its not functional&#8230; Can anyone help me with this!? but when I test on the other computer it works on IE4+&#8230;</p>
<p>function GetXmlHttpObject(handler){<br />
    var objXMLHttp=null<br />
    if (window.XMLHttpRequest){<br />
        objXMLHttp=new XMLHttpRequest()<br />
    }else if (window.ActiveXObject){<br />
        objXMLHttp=new ActiveXObject(&#8221;Microsoft.XMLHTTP&#8221;)<br />
    }<br />
    return objXMLHttp<br />
}<br />
function builderChanged(){<br />
    if (xmlHttp.readyState==4 || xmlHttp.readyState==&#8221;complete&#8221;){<br />
        document.getElementById(&#8217;vill&#8217;).innerHTML= xmlHttp.responseText;<br />
    }<br />
}<br />
function htmlDataBuilder(url, qStr){<br />
    if (url.length==0){<br />
        document.getElementById(&#8221;vill&#8221;).innerHTML=&#8221;";<br />
        return;<br />
    }<br />
    xmlHttp=GetXmlHttpObject()<br />
    if (xmlHttp==null){<br />
        alert (&#8221;Browser does not support HTTP Request&#8221;);<br />
        return;<br />
    }</p>
<p>    url=url+&#8221;?&#8221;+qStr;<br />
    url=url+&#8221;&amp;sid=&#8221;+Math.random();<br />
    xmlHttp.onreadystatechange=builderChanged;<br />
    xmlHttp.open(&#8221;GET&#8221;,url,true) ;<br />
    xmlHttp.send(null);<br />
}
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bigtema</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-15001</link>
		<pubDate>Sat, 22 Dec 2007 08:58:24 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-15001</guid>
					<description>Thank you! That helps me a lot. 

Best regards from Russia.</description>
		<content:encoded><![CDATA[<p>Thank you! That helps me a lot. </p>
<p>Best regards from Russia.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: ManFree</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-3813</link>
		<pubDate>Thu, 12 Jul 2007 04:03:57 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-3813</guid>
					<description>Respond to the -&amp;#62; &quot;Remove the XHTML tag by DW and you will get it working in Firefox.&quot; 

I have removed the XHTML tag ... but the innerHTML still not working in FireFox .... (it works in IE)</description>
		<content:encoded><![CDATA[<p>Respond to the -&gt; &#8220;Remove the XHTML tag by DW and you will get it working in Firefox.&#8221; </p>
<p>I have removed the XHTML tag &#8230; but the innerHTML still not working in FireFox &#8230;. (it works in IE)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Sean and Risa</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-2957</link>
		<pubDate>Mon, 18 Jun 2007 20:15:51 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-2957</guid>
					<description>Ken,

Thank you for the tips. You saved us from the pitfall.

Regards,</description>
		<content:encoded><![CDATA[<p>Ken,</p>
<p>Thank you for the tips. You saved us from the pitfall.</p>
<p>Regards,
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Venkat</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-1878</link>
		<pubDate>Mon, 16 Apr 2007 07:44:58 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-1878</guid>
					<description>Thanks a Lot...</description>
		<content:encoded><![CDATA[<p>Thanks a Lot&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tinhvd</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-1748</link>
		<pubDate>Tue, 03 Apr 2007 19:41:04 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-1748</guid>
					<description>Hi all!
I have a problem!
Why using innerHTML in IE be reload page jsp, while firefox no!

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi all!<br />
I have a problem!<br />
Why using innerHTML in IE be reload page jsp, while firefox no!</p>
<p>Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: krrcwl</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-1678</link>
		<pubDate>Tue, 12 Sep 2006 09:47:55 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-1678</guid>
					<description>Ach, eventually I discovered it was a caching issue. Firefox wasn't doing a fresh reload with Command-Option-R, so it was still working from a broken version. Had to clear the cache explicitly. Strange.</description>
		<content:encoded><![CDATA[<p>Ach, eventually I discovered it was a caching issue. Firefox wasn&#8217;t doing a fresh reload with Command-Option-R, so it was still working from a broken version. Had to clear the cache explicitly. Strange.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: krrcwl</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-1676</link>
		<pubDate>Sun, 10 Sep 2006 21:44:30 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-1676</guid>
					<description>I've come across a strange bug in Firefox; I'm using the usual AJAX method to pull in some HTML to put into a Div, which contains two tables, the first of which displays fine, but the second doesn't. The DOM Inspector correctly shows the bounds of the second table, but all its the contents (some radio buttons and selects) are just not displayed.

I have been using Safari to test with and all is fine there. I haven't dared try it on IE yet!

If anyone has any ideas? ...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve come across a strange bug in Firefox; I&#8217;m using the usual AJAX method to pull in some HTML to put into a Div, which contains two tables, the first of which displays fine, but the second doesn&#8217;t. The DOM Inspector correctly shows the bounds of the second table, but all its the contents (some radio buttons and selects) are just not displayed.</p>
<p>I have been using Safari to test with and all is fine there. I haven&#8217;t dared try it on IE yet!</p>
<p>If anyone has any ideas? &#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: xprienced</title>
		<link>http://www.kenvillines.com/archives/000069.html#comment-1675</link>
		<pubDate>Fri, 08 Sep 2006 09:02:50 +0000</pubDate>
		<guid>http://www.kenvillines.com/archives/000069.html#comment-1675</guid>
					<description>Hamish is correct . Remove the XHTML tag by DW and you will get it working in Firefox. It took my 3 hrs and then just a suggestion of Xhtml worked. 

Zindagi ROcks.</description>
		<content:encoded><![CDATA[<p>Hamish is correct . Remove the XHTML tag by DW and you will get it working in Firefox. It took my 3 hrs and then just a suggestion of Xhtml worked. </p>
<p>Zindagi ROcks.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
