<?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: IE bugs &#8211; dynamically creating form elements</title>
	<atom:link href="http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/feed/" rel="self" type="application/rss+xml" />
	<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/</link>
	<description>php, linux, ajax, javascript, kae verens</description>
	<lastBuildDate>Thu, 11 Mar 2010 00:12:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: &#60;iframe&#62; + createAttribute('name') streikt im IE - jswelt - Forum (Javascript, PHP, MySQL, AJAX, Webdesign)</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-54221</link>
		<dc:creator>&#60;iframe&#62; + createAttribute('name') streikt im IE - jswelt - Forum (Javascript, PHP, MySQL, AJAX, Webdesign)</dc:creator>
		<pubDate>Tue, 31 Jul 2007 19:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-54221</guid>
		<description>[...] this.form.enctype = &#039;multipart/form-data&#039;; Hab grade ?ber Google auf Seite 3 oder so (musste wohl noch nie so weit bl?ttern um was zu finden) folgenden Link gefunden: klog ? Blog Archive ? IE bugs - dynamically creating form elements  Die L?sung dort, passt mir aber nicht wirklich in den Kram, weil ich bereits ein bestehendes &lt;form&gt; Tag habe, das ich nur noch anpassen will! Wenn es denn unbedingt sein muss, werde ich das bestehende &lt;form&gt; halt mit replaceChild() ersetzen! Falls aber jemand ne bessere L?sung hat, immer her damit   @B.Daddel: Nomal thx a lot    Gruss [...]</description>
		<content:encoded><![CDATA[<p>[...] this.form.enctype = &#8216;multipart/form-data&#8217;; Hab grade ?ber Google auf Seite 3 oder so (musste wohl noch nie so weit bl?ttern um was zu finden) folgenden Link gefunden: klog ? Blog Archive ? IE bugs &#8211; dynamically creating form elements  Die L?sung dort, passt mir aber nicht wirklich in den Kram, weil ich bereits ein bestehendes &lt;form&gt; Tag habe, das ich nur noch anpassen will! Wenn es denn unbedingt sein muss, werde ich das bestehende &lt;form&gt; halt mit replaceChild() ersetzen! Falls aber jemand ne bessere L?sung hat, immer her damit   @B.Daddel: Nomal thx a lot    Gruss [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-53233</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 20 Jul 2007 11:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-53233</guid>
		<description>EyePulps solution works - but only partly. Because I need to change it after submitting back again, which doesn&#039;t work for me. Im trying to do something like:

	document.getElementById(&#039;data&#039;).encoding = &quot;multipart/form-data&quot;;
	document.getElementById(&#039;data&#039;).enctype = &quot;multipart/form-data&quot;;
	document.getElementById(&#039;data&#039;).submit();
	document.getElementById(&#039;data&#039;).encoding = &quot;x&quot;;
	document.getElementById(&#039;data&#039;).enctype = &quot;&quot;;

The first assignment works but after the submit() IE throws an error saying the property &quot;encoding&quot; does not exist. This browser really sucks...</description>
		<content:encoded><![CDATA[<p>EyePulps solution works &#8211; but only partly. Because I need to change it after submitting back again, which doesn&#8217;t work for me. Im trying to do something like:</p>
<p>	document.getElementById(&#8216;data&#8217;).encoding = &#8220;multipart/form-data&#8221;;<br />
	document.getElementById(&#8216;data&#8217;).enctype = &#8220;multipart/form-data&#8221;;<br />
	document.getElementById(&#8216;data&#8217;).submit();<br />
	document.getElementById(&#8216;data&#8217;).encoding = &#8220;x&#8221;;<br />
	document.getElementById(&#8216;data&#8217;).enctype = &#8220;&#8221;;</p>
<p>The first assignment works but after the submit() IE throws an error saying the property &#8220;encoding&#8221; does not exist. This browser really sucks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diederik van der Boor</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-44179</link>
		<dc:creator>Diederik van der Boor</dc:creator>
		<pubDate>Fri, 06 Apr 2007 09:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-44179</guid>
		<description>&gt; however, I’m trying point it at a dynamic iFrame,
&gt; and IE just isn’t accepting the .target value.

Try the following:

  var frame = document.createElement(&#039;IFRAME&#039;);
  frame.name = frameName;
  frame.id = frameName; // for MSIE fix later.
  frame = body.appendChild( frame );   // appendChild() may return a different pointer..
  window.frames[ frameName ].name = frameName;

This abuses the fact that window.frames[id] returns any element with an ID, not just frames. The frame exists in window.frames, but the name is not really registered yet in the DOM.</description>
		<content:encoded><![CDATA[<p>&gt; however, I’m trying point it at a dynamic iFrame,<br />
&gt; and IE just isn’t accepting the .target value.</p>
<p>Try the following:</p>
<p>  var frame = document.createElement(&#8216;IFRAME&#8217;);<br />
  frame.name = frameName;<br />
  frame.id = frameName; // for MSIE fix later.<br />
  frame = body.appendChild( frame );   // appendChild() may return a different pointer..<br />
  window.frames[ frameName ].name = frameName;</p>
<p>This abuses the fact that window.frames[id] returns any element with an ID, not just frames. The frame exists in window.frames, but the name is not really registered yet in the DOM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-18547</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Tue, 01 Aug 2006 00:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-18547</guid>
		<description>It seems my code didn&#039;t come through fully. The following should have appeared inside the innerHTML single quotes:


If it still gets blocked this time, it&#039;s simply an html iframe element with name and id explicitly set to be &quot;mytarget&quot;.</description>
		<content:encoded><![CDATA[<p>It seems my code didn&#8217;t come through fully. The following should have appeared inside the innerHTML single quotes:</p>
<p>If it still gets blocked this time, it&#8217;s simply an html iframe element with name and id explicitly set to be &#8220;mytarget&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-18546</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Tue, 01 Aug 2006 00:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-18546</guid>
		<description>I was stuck with the same problem. The IE fix using &quot;encoding&quot; posted by EyePulp works great. As for his question about targeting a dynamic iFrame, I had that problem too. In the end, I check for IE and create my iframe in a div using an innerHTML. It&#039;s the only way I have found that works.
			iframediv = document.createElement( &#039;div&#039; );
			if (document.all)
				iframediv.innerHTML = &#039;&#039;;
			else {
				myiframe = document.createElement( &#039;iframe&#039; );
				myiframe.id = &quot;mytarget&quot;;
				myiframe.name = &quot;mytarget&quot;;
				iframediv.appendChild(myiframe);
			}</description>
		<content:encoded><![CDATA[<p>I was stuck with the same problem. The IE fix using &#8220;encoding&#8221; posted by EyePulp works great. As for his question about targeting a dynamic iFrame, I had that problem too. In the end, I check for IE and create my iframe in a div using an innerHTML. It&#8217;s the only way I have found that works.<br />
			iframediv = document.createElement( &#8216;div&#8217; );<br />
			if (document.all)<br />
				iframediv.innerHTML = &#8221;;<br />
			else {<br />
				myiframe = document.createElement( &#8216;iframe&#8217; );<br />
				myiframe.id = &#8220;mytarget&#8221;;<br />
				myiframe.name = &#8220;mytarget&#8221;;<br />
				iframediv.appendChild(myiframe);<br />
			}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fdh fdhgfd</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-2924</link>
		<dc:creator>fdh fdhgfd</dc:creator>
		<pubDate>Fri, 09 Dec 2005 22:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-2924</guid>
		<description>&lt;strong&gt;uiuio &lt;/strong&gt;uiouo iogfhfdhfdg &lt;a href=&quot;www.cnn.com&quot; rel=&quot;nofollow&quot;&gt;page&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><strong>uiuio </strong>uiouo iogfhfdhfdg <a href="www.cnn.com" rel="nofollow">page</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EyePulp</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-2398</link>
		<dc:creator>EyePulp</dc:creator>
		<pubDate>Fri, 14 Oct 2005 00:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-2398</guid>
		<description>I found out how to change the enctype in ie dynamically - formObj.encoding = &quot;multipart/form-data&quot;;

set both .encoding and .enctype and it seems to work - however, I&#039;m trying point it at a dynamic iFrame, and IE just isn&#039;t accepting the .target value.

*sigh*</description>
		<content:encoded><![CDATA[<p>I found out how to change the enctype in ie dynamically &#8211; formObj.encoding = &#8220;multipart/form-data&#8221;;</p>
<p>set both .encoding and .enctype and it seems to work &#8211; however, I&#8217;m trying point it at a dynamic iFrame, and IE just isn&#8217;t accepting the .target value.</p>
<p>*sigh*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kae</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-1867</link>
		<dc:creator>kae</dc:creator>
		<pubDate>Sat, 03 Sep 2005 14:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-1867</guid>
		<description>You might get away with copying the &lt;code&gt;childNodes&lt;/code&gt; of that form into an array, creating a new form with the desired &lt;code&gt;enctype&lt;/code&gt;, then removing the old form, replacing it with the new one, then appending the original &lt;code&gt;childNodes&lt;/code&gt;.

Then again, you may just be screwed.</description>
		<content:encoded><![CDATA[<p>You might get away with copying the <code>childNodes</code> of that form into an array, creating a new form with the desired <code>enctype</code>, then removing the old form, replacing it with the new one, then appending the original <code>childNodes</code>.</p>
<p>Then again, you may just be screwed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Barrett</title>
		<link>http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/comment-page-1/#comment-1822</link>
		<dc:creator>James Barrett</dc:creator>
		<pubDate>Fri, 02 Sep 2005 17:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/07/06/ie-bugs-dynamically-creating-form-elements/#comment-1822</guid>
		<description>I&#039;m stuck with this problem too - how do you change enctype using javascript in IE6 for a form that already exists? (Using createElement is not possible). Any help greatly appreciated. You can change enctype no problem in Mozilla but IE6 barfs as you say.</description>
		<content:encoded><![CDATA[<p>I&#8217;m stuck with this problem too &#8211; how do you change enctype using javascript in IE6 for a form that already exists? (Using createElement is not possible). Any help greatly appreciated. You can change enctype no problem in Mozilla but IE6 barfs as you say.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
