<?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: Dynamic Iframe Sized to Contents w/ Javascript</title>
	<atom:link href="http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/</link>
	<description>CRG Studios &#38; Consulting</description>
	<lastBuildDate>Sat, 12 Dec 2009 06:21:25 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Colin Godsey</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-115</link>
		<dc:creator>Colin Godsey</dc:creator>
		<pubDate>Mon, 17 Aug 2009 16:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-115</guid>
		<description>yes, when you are using this method, you have to make sure it doesnt break the cross-domain security model that most newer browsers have. it shouldn&#039;t be an issues if you are running a legit site. if you do need to go this route, it is always possible to funnel everything using a proxy that takes advantage of something like CURL</description>
		<content:encoded><![CDATA[<p>yes, when you are using this method, you have to make sure it doesnt break the cross-domain security model that most newer browsers have. it shouldn&#8217;t be an issues if you are running a legit site. if you do need to go this route, it is always possible to funnel everything using a proxy that takes advantage of something like CURL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ipoeals</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-95</link>
		<dc:creator>ipoeals</dc:creator>
		<pubDate>Sun, 09 Aug 2009 00:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-95</guid>
		<description>@vks

Check this out: Same origin policy for JavaScript

https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript</description>
		<content:encoded><![CDATA[<p>@vks</p>
<p>Check this out: Same origin policy for JavaScript</p>
<p><a href="https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript" rel="nofollow">https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vks</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-61</link>
		<dc:creator>vks</dc:creator>
		<pubDate>Tue, 26 May 2009 06:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-61</guid>
		<description>I have the same issue, my ifram is working as widjet, if i put the widjet in same domain it will works, otherwise it won&#039;t.There is a javascript permission error  when trying to change the iframe height dynamically.


Anybody know how solve this issue?</description>
		<content:encoded><![CDATA[<p>I have the same issue, my ifram is working as widjet, if i put the widjet in same domain it will works, otherwise it won&#8217;t.There is a javascript permission error  when trying to change the iframe height dynamically.</p>
<p>Anybody know how solve this issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Godsey</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-53</link>
		<dc:creator>Colin Godsey</dc:creator>
		<pubDate>Wed, 22 Apr 2009 18:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-53</guid>
		<description>You are corrent. If the frame and the parent are on different domains, javascript will through a permissions error. This a somewhat recent change, but it makes a lot of sense from a security standpoint.</description>
		<content:encoded><![CDATA[<p>You are corrent. If the frame and the parent are on different domains, javascript will through a permissions error. This a somewhat recent change, but it makes a lot of sense from a security standpoint.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Merrimack</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-52</link>
		<dc:creator>Merrimack</dc:creator>
		<pubDate>Tue, 21 Apr 2009 17:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-52</guid>
		<description>Colin, I have been trying to use a slight variation of your code to resize an iframe according to its contents.  The code works beautifully when I open the page from a local environment (run it from my hard drive), but when I upload the site to its hosted location and open the page, the code doesn&#039;t appear to work.  When I open the page, the height of the iframe is set as if the &quot;calcHeight()&quot; script is not
getting run.

Here is the site that I am using to test your code:

http://mysite.verizon.net/craigmgeorge/test1.html

If I view the page load in an error console, I see the following error:

Unsafe JavaScript attempt to access frame with URL
http://dealers.autouplinkusa.com/v/?DealerId=6188&amp;Type=U&amp;F=1 from frame with URL http://mysite.verizon.net/craigmgeorge/test1.html.
Domains, protocols and ports must match.

Is it the case that this type of code won&#039;t work if the domain of the iframe source page does not match the domain of the parent page?  If so, do you know of any other ways to adjust the height of an iframe according to the source page?

Thanks in advance for your help!</description>
		<content:encoded><![CDATA[<p>Colin, I have been trying to use a slight variation of your code to resize an iframe according to its contents.  The code works beautifully when I open the page from a local environment (run it from my hard drive), but when I upload the site to its hosted location and open the page, the code doesn&#8217;t appear to work.  When I open the page, the height of the iframe is set as if the &#8220;calcHeight()&#8221; script is not<br />
getting run.</p>
<p>Here is the site that I am using to test your code:</p>
<p><a href="http://mysite.verizon.net/craigmgeorge/test1.html" rel="nofollow">http://mysite.verizon.net/craigmgeorge/test1.html</a></p>
<p>If I view the page load in an error console, I see the following error:</p>
<p>Unsafe JavaScript attempt to access frame with URL<br />
<a href="http://dealers.autouplinkusa.com/v/?DealerId=6188&amp;Type=U&amp;F=1" rel="nofollow">http://dealers.autouplinkusa.com/v/?DealerId=6188&amp;Type=U&amp;F=1</a> from frame with URL <a href="http://mysite.verizon.net/craigmgeorge/test1.html" rel="nofollow">http://mysite.verizon.net/craigmgeorge/test1.html</a>.<br />
Domains, protocols and ports must match.</p>
<p>Is it the case that this type of code won&#8217;t work if the domain of the iframe source page does not match the domain of the parent page?  If so, do you know of any other ways to adjust the height of an iframe according to the source page?</p>
<p>Thanks in advance for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Godsey</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-50</link>
		<dc:creator>Colin Godsey</dc:creator>
		<pubDate>Mon, 13 Apr 2009 15:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-50</guid>
		<description>the onload event on an iframe is actually called when the iframe has fully loaded. i believe its called on every element after it has done its processing</description>
		<content:encoded><![CDATA[<p>the onload event on an iframe is actually called when the iframe has fully loaded. i believe its called on every element after it has done its processing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gift sam</title>
		<link>http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/comment-page-1/#comment-35</link>
		<dc:creator>gift sam</dc:creator>
		<pubDate>Tue, 07 Oct 2008 09:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.colingodsey.com/dynamic-iframe-sized-to-contents-w-javascript/#comment-35</guid>
		<description>How could we do onLoad event in  tag..I reckon onLoad event is not possible in Iframe.then how could we call the javascript.plZ give some valuable inputs on this regarding???</description>
		<content:encoded><![CDATA[<p>How could we do onLoad event in  tag..I reckon onLoad event is not possible in Iframe.then how could we call the javascript.plZ give some valuable inputs on this regarding???</p>
]]></content:encoded>
	</item>
</channel>
</rss>
