<?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: Dynamically creating an iframe in Internet Explorer for remote form submissions</title>
	<atom:link href="http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/</link>
	<description>JavaScript, Web Development, Ruby, and Technology.</description>
	<lastBuildDate>Sun, 01 Jan 2012 09:49:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Creating an asynchronous upload extender &#171; Update Panel .NET</title>
		<link>http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/comment-page-1/#comment-898</link>
		<dc:creator>Creating an asynchronous upload extender &#171; Update Panel .NET</dc:creator>
		<pubDate>Sun, 12 Oct 2008 17:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/#comment-898</guid>
		<description>[...] http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/" rel="nofollow">http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/comment-page-1/#comment-41</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 14 May 2008 19:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/#comment-41</guid>
		<description>Max, thanks for dropping the knowledge on me. I&#039;ve clarified my post a bit to specify I&#039;m only talking about if you want to target a dynamically generated iframe - but regardless, I&#039;ve verified that your method works, too, and I like it better.</description>
		<content:encoded><![CDATA[<p>Max, thanks for dropping the knowledge on me. I&#8217;ve clarified my post a bit to specify I&#8217;m only talking about if you want to target a dynamically generated iframe &#8211; but regardless, I&#8217;ve verified that your method works, too, and I like it better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/comment-page-1/#comment-40</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Wed, 14 May 2008 14:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://readystate4.com/2008/05/13/dynamically-creating-an-iframe-for-internet-explorer/#comment-40</guid>
		<description>This is not true. You most certainly can create an iframe in IE using .createElement(&#039;iframe&#039;);

I know because I have apps that do this 2-3 times per page.

The tricks are:

1.) If you want to set the border to none, you need to set the &quot;frameBorder&quot; attribute to &quot;0&quot; (yes, camel case is required for IE)

2.) If you want to target this frame, from within the regular page, you need to set the &quot;name&quot; attribute.... BUT you can&#039;t do this in IE with .setAttribute(&#039;name&#039;,&#039;myIframe&#039;);
Bug 235:
http://webbugtrack.blogspot.com/2007/10/bug-235-createelement-is-broken-in-ie.html

What you will need to do is create it (for IE only) like this...

document.createElement(&#039;&#039;);
//in case this post gets mangled, replace the
//sqare brackets in the following line with angled brackets.
document.createElement(&#039;[iframe name=&quot;myIframe&quot;]&#039;);

yes, it looks goofy and breaks spec, but this is IE.

For more info on what attributes you can and can&#039;t set in IE using .setAttribute() see this bug (242)
http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html

Best of luck!</description>
		<content:encoded><![CDATA[<p>This is not true. You most certainly can create an iframe in IE using .createElement(&#8216;iframe&#8217;);</p>
<p>I know because I have apps that do this 2-3 times per page.</p>
<p>The tricks are:</p>
<p>1.) If you want to set the border to none, you need to set the &#8220;frameBorder&#8221; attribute to &#8220;0&#8243; (yes, camel case is required for IE)</p>
<p>2.) If you want to target this frame, from within the regular page, you need to set the &#8220;name&#8221; attribute&#8230;. BUT you can&#8217;t do this in IE with .setAttribute(&#8216;name&#8217;,'myIframe&#8217;);<br />
Bug 235:<br />
<a href="http://webbugtrack.blogspot.com/2007/10/bug-235-createelement-is-broken-in-ie.html" rel="nofollow">http://webbugtrack.blogspot.com/2007/10/bug-235-createelement-is-broken-in-ie.html</a></p>
<p>What you will need to do is create it (for IE only) like this&#8230;</p>
<p>document.createElement(&#8221;);<br />
//in case this post gets mangled, replace the<br />
//sqare brackets in the following line with angled brackets.<br />
document.createElement(&#8216;[iframe name="myIframe"]&#8216;);</p>
<p>yes, it looks goofy and breaks spec, but this is IE.</p>
<p>For more info on what attributes you can and can&#8217;t set in IE using .setAttribute() see this bug (242)<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>Best of luck!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

