<?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"
	>
<channel>
	<title>Comments on: IE bugs - 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>
	<pubDate>Fri, 29 Aug 2008 22:06:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<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-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 = 'multipart/form-data'; 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 &#60;form&#62; Tag habe, das ich nur noch anpassen will! Wenn es denn unbedingt sein muss, werde ich das bestehende &#60;form&#62; 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 - 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-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't work for me. Im trying to do something like:

	document.getElementById('data').encoding = "multipart/form-data";
	document.getElementById('data').enctype = "multipart/form-data";
	document.getElementById('data').submit();
	document.getElementById('data').encoding = "x";
	document.getElementById('data').enctype = "";

The first assignment works but after the submit() IE throws an error saying the property "encoding" does not exist. This browser really sucks...</description>
		<content:encoded><![CDATA[<p>EyePulps solution works - 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(&#8217;data&#8217;).encoding = &#8220;multipart/form-data&#8221;;<br />
	document.getElementById(&#8217;data&#8217;).enctype = &#8220;multipart/form-data&#8221;;<br />
	document.getElementById(&#8217;data&#8217;).submit();<br />
	document.getElementById(&#8217;data&#8217;).encoding = &#8220;x&#8221;;<br />
	document.getElementById(&#8217;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-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>&#62; however, I’m trying point it at a dynamic iFrame,
&#62; and IE just isn’t accepting the .target value.

Try the following:

  var frame = document.createElement('IFRAME');
  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(&#8217;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-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't come through fully. The following should have appeared inside the innerHTML single quotes:


If it still gets blocked this time, it's simply an html iframe element with name and id explicitly set to be "mytarget".</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-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 "encoding" 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's the only way I have found that works.
			iframediv = document.createElement( 'div' );
			if (document.all)
				iframediv.innerHTML = '';
			else {
				myiframe = document.createElement( 'iframe' );
				myiframe.id = "mytarget";
				myiframe.name = "mytarget";
				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-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="www.cnn.com" rel="nofollow"&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-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 = "multipart/form-data";

set both .encoding and .enctype and it seems to work - however, I'm trying point it at a dynamic iFrame, and IE just isn't accepting the .target value.

*sigh*</description>
		<content:encoded><![CDATA[<p>I found out how to change the enctype in ie dynamically - formObj.encoding = &#8220;multipart/form-data&#8221;;</p>
<p>set both .encoding and .enctype and it seems to work - 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-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-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'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 - 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>
