<?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: Setting the &#8220;name&#8221; attribute in Internet Explorer</title>
	<atom:link href="http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/</link>
	<description>Software, the Internet and you.</description>
	<lastBuildDate>Fri, 12 Mar 2010 10:41:30 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Função clone da jQuery e atributo name para IE &#124; DGmike</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-3/#comment-91030</link>
		<dc:creator>Função clone da jQuery e atributo name para IE &#124; DGmike</dc:creator>
		<pubDate>Mon, 25 May 2009 17:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-91030</guid>
		<description>[...] na versão oito o problema foi corrigido. O problema é o seguinte: EM RADIO BUTTONS E CHECKBOXES O NAME NÃO PODE SER ALTERADO DINAMICAMENTE VIA JAVSCRIPT! Aí já viu, né? Eles (os desenvolvedores do [...]</description>
		<content:encoded><![CDATA[<p>[...] na versão oito o problema foi corrigido. O problema é o seguinte: EM RADIO BUTTONS E CHECKBOXES O NAME NÃO PODE SER ALTERADO DINAMICAMENTE VIA JAVSCRIPT! Aí já viu, né? Eles (os desenvolvedores do [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuppusamy</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-78377</link>
		<dc:creator>Kuppusamy</dc:creator>
		<pubDate>Wed, 08 Oct 2008 09:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-78377</guid>
		<description>Hi,

  After few hours of banging the head against wall, i manage to find this solution and was really helpful. Thanks a bunch.

Kuppusamy</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>  After few hours of banging the head against wall, i manage to find this solution and was really helpful. Thanks a bunch.</p>
<p>Kuppusamy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bennett</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-74903</link>
		<dc:creator>Bennett</dc:creator>
		<pubDate>Tue, 29 Jul 2008 09:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-74903</guid>
		<description>Thanks for that! I have updated the links. Every so often Microsoft reorganise MSDN and break all their &quot;perma&quot;links.</description>
		<content:encoded><![CDATA[<p>Thanks for that! I have updated the links. Every so often Microsoft reorganise MSDN and break all their &#8220;perma&#8221;links.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar Chetan Sharma</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-74887</link>
		<dc:creator>Kumar Chetan Sharma</dc:creator>
		<pubDate>Tue, 29 Jul 2008 00:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-74887</guid>
		<description>Thanks a lot for the explanation. You may have to update the link to MSDN. They take to content not found page.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for the explanation. You may have to update the link to MSDN. They take to content not found page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domenic</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-74285</link>
		<dc:creator>Domenic</dc:creator>
		<pubDate>Wed, 16 Jul 2008 18:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-74285</guid>
		<description>Welcome to the painful world of IE development!

This is just one of the dozens of attributes you CANT set in IE.

See here for complete details.
http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html

There&#039;s actually a lot of good info on this site. I highly recommend an extensive read.</description>
		<content:encoded><![CDATA[<p>Welcome to the painful world of IE development!</p>
<p>This is just one of the dozens of attributes you CANT set in IE.</p>
<p>See here for complete details.<br />
<a href="http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html" rel="nofollow">http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html</a></p>
<p>There&#8217;s actually a lot of good info on this site. I highly recommend an extensive read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Burns</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-71365</link>
		<dc:creator>Stephen Burns</dc:creator>
		<pubDate>Tue, 27 May 2008 16:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-71365</guid>
		<description>Thanks a million for this, I was pulling my hair out trying to get a image slide show to work in IE 7. Turns out it was because of this stupid createElement bug!</description>
		<content:encoded><![CDATA[<p>Thanks a million for this, I was pulling my hair out trying to get a image slide show to work in IE 7. Turns out it was because of this stupid createElement bug!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiago.santos</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-46734</link>
		<dc:creator>tiago.santos</dc:creator>
		<pubDate>Fri, 22 Feb 2008 17:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-46734</guid>
		<description>To set an attribute 
I use getAttribute(&quot;XXX&quot;).value.

ex:
var pass = document.getElementById(&#039;txtPassword&#039;);					pass.getAttribute(&quot;onfocus&quot;).value = &quot;javascript:blabla()&quot;;

Tested and worked on FF, IE7, IE6, IE5.5 ....</description>
		<content:encoded><![CDATA[<p>To set an attribute<br />
I use getAttribute(&#8221;XXX&#8221;).value.</p>
<p>ex:<br />
var pass = document.getElementById(&#8217;txtPassword&#8217;);					pass.getAttribute(&#8221;onfocus&#8221;).value = &#8220;javascript:blabla()&#8221;;</p>
<p>Tested and worked on FF, IE7, IE6, IE5.5 &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harvey</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-45822</link>
		<dc:creator>Harvey</dc:creator>
		<pubDate>Sun, 10 Feb 2008 04:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-45822</guid>
		<description>Although still far from perfect, this would be a better solution, only applying the hack to IE, and letting the other browsers work as designed:

var isOpera, isIE = false;
if(typeof(window.opera) != &#039;undefined&#039;){isOpera = true;}
if(!isOpera &amp;&amp; navigator.userAgent.indexOf(&#039;Internet Explorer&#039;)){isIE = true);

function createNamedElement(type, name, checked){
  var element = document.createElement(type);
  if(name){
    element.setAttribute(&#039;name&#039;, name);
  }
  if(checked){
    element.setAttribute(&#039;checked&#039;, &#039;checked&#039;);
  }
  return element;
}

//fix IE
if(isIE){
  function createNamedElement(type, name, checked){
    var elemStr = &#039;&#039;;
    return document.createElement(elemStr);
  }
}

With this, the function is redefined if IE, to handle its broken DOM.</description>
		<content:encoded><![CDATA[<p>Although still far from perfect, this would be a better solution, only applying the hack to IE, and letting the other browsers work as designed:</p>
<p>var isOpera, isIE = false;<br />
if(typeof(window.opera) != &#8216;undefined&#8217;){isOpera = true;}<br />
if(!isOpera &amp;&amp; navigator.userAgent.indexOf(&#8217;Internet Explorer&#8217;)){isIE = true);</p>
<p>function createNamedElement(type, name, checked){<br />
  var element = document.createElement(type);<br />
  if(name){<br />
    element.setAttribute(&#8217;name&#8217;, name);<br />
  }<br />
  if(checked){<br />
    element.setAttribute(&#8217;checked&#8217;, &#8216;checked&#8217;);<br />
  }<br />
  return element;<br />
}</p>
<p>//fix IE<br />
if(isIE){<br />
  function createNamedElement(type, name, checked){<br />
    var elemStr = &#8221;;<br />
    return document.createElement(elemStr);<br />
  }<br />
}</p>
<p>With this, the function is redefined if IE, to handle its broken DOM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bert Zwep</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-43803</link>
		<dc:creator>Bert Zwep</dc:creator>
		<pubDate>Tue, 15 Jan 2008 14:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-43803</guid>
		<description>@Pablo

You can not set an onclick on an element in IE as an attribute. This is because IE does not see it as an attribute, but as an object. Try e.g.:
eval(&quot;elem.onclick=&#039;myScript()&#039;&quot;)</description>
		<content:encoded><![CDATA[<p>@Pablo</p>
<p>You can not set an onclick on an element in IE as an attribute. This is because IE does not see it as an attribute, but as an object. Try e.g.:<br />
eval(&#8221;elem.onclick=&#8217;myScript()&#8217;&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Murphy</title>
		<link>http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/comment-page-2/#comment-43690</link>
		<dc:creator>Matt Murphy</dc:creator>
		<pubDate>Sun, 13 Jan 2008 23:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thunderguy.com/semicolon/20050511/42/#comment-43690</guid>
		<description>I think I may have found another way around this bug.

I posted the solution I found on my web development blog here:
http://matts411.com/webdev/cre.....javascript

Let me know what you guys think.

Matt</description>
		<content:encoded><![CDATA[<p>I think I may have found another way around this bug.</p>
<p>I posted the solution I found on my web development blog here:<br />
<a href="http://matts411.com/webdev/cre.....javascript" rel="nofollow">http://matts411.com/webdev/cre&#8230;..javascript</a></p>
<p>Let me know what you guys think.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
