<?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: Resizing IFrames Across Domains</title>
	<atom:link href="http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/</link>
	<description>General geeky postings</description>
	<lastBuildDate>Wed, 07 Dec 2011 16:34:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Pedru</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-81095</link>
		<dc:creator>Pedru</dc:creator>
		<pubDate>Fri, 02 Sep 2011 21:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-81095</guid>
		<description>Great solution and even greater that you provided such great documentation. Thank you.</description>
		<content:encoded><![CDATA[<p>Great solution and even greater that you provided such great documentation. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-77770</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 14 Jul 2011 16:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-77770</guid>
		<description>Simply incredible. I&#039;ve been looking around for this forever. Incidentally, regarding this: 

&quot;currently you still wouldn’t be able to pass information into the iframe from the main page&quot;

I found this link: http://www.codeproject.com/KB/aspnet/IFrameParams.aspx</description>
		<content:encoded><![CDATA[<p>Simply incredible. I&#8217;ve been looking around for this forever. Incidentally, regarding this: </p>
<p>&#8220;currently you still wouldn’t be able to pass information into the iframe from the main page&#8221;</p>
<p>I found this link: <a href="http://www.codeproject.com/KB/aspnet/IFrameParams.aspx" rel="nofollow">http://www.codeproject.com/KB/aspnet/IFrameParams.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Expand page height based on iframe source</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-76316</link>
		<dc:creator>Expand page height based on iframe source</dc:creator>
		<pubDate>Wed, 22 Jun 2011 14:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-76316</guid>
		<description>[...] I found someone who does have a resolution. Full credit goes to John and his post here from [...]</description>
		<content:encoded><![CDATA[<p>[...] I found someone who does have a resolution. Full credit goes to John and his post here from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niclas</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-74343</link>
		<dc:creator>Niclas</dc:creator>
		<pubDate>Fri, 27 May 2011 14:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-74343</guid>
		<description>Great! I made it automatically resize itself by putting this after the function resizethisFrame {
...
}
setInterval(&quot;resizeThisFrame()&quot;, 1000);

This resizes the frame every second, BUT as the script changes the iframe.src, it also reloads the page, so the back-button gets messy, and might slow down the browser.

It would be awesome if there was some way to make the frame resize itself as the contents change.

Anyone got any tips on that? :)</description>
		<content:encoded><![CDATA[<p>Great! I made it automatically resize itself by putting this after the function resizethisFrame {<br />
&#8230;<br />
}<br />
setInterval(&#8220;resizeThisFrame()&#8221;, 1000);</p>
<p>This resizes the frame every second, BUT as the script changes the iframe.src, it also reloads the page, so the back-button gets messy, and might slow down the browser.</p>
<p>It would be awesome if there was some way to make the frame resize itself as the contents change.</p>
<p>Anyone got any tips on that? <img src='http://blog.johnmckerrell.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-73590</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 13 May 2011 10:29:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-73590</guid>
		<description>I have used your info and others and hve found a mint solution. Check my post on SO
http://stackoverflow.com/q/5908676/706363</description>
		<content:encoded><![CDATA[<p>I have used your info and others and hve found a mint solution. Check my post on SO<br />
<a href="http://stackoverflow.com/q/5908676/706363" rel="nofollow">http://stackoverflow.com/q/5908676/706363</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-73589</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 13 May 2011 10:28:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-73589</guid>
		<description>I have used your site and other- and found a mint solution! Check my post 
http://stackoverflow.com/q/5908676/706363</description>
		<content:encoded><![CDATA[<p>I have used your site and other- and found a mint solution! Check my post<br />
<a href="http://stackoverflow.com/q/5908676/706363" rel="nofollow">http://stackoverflow.com/q/5908676/706363</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IE limitations of window.top (method not found) &#124; DEEP in PHP</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-66309</link>
		<dc:creator>IE limitations of window.top (method not found) &#124; DEEP in PHP</dc:creator>
		<pubDate>Tue, 01 Feb 2011 15:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-66309</guid>
		<description>[...] not found)  Posted by News On February 1st, 2011 / No Comments     I&#8217;m using the code from John McKerrel to resize IFrames across domains (sample code is in a zip file there), there is an updated (bloated) version on CSS-Tricks: Cross [...]</description>
		<content:encoded><![CDATA[<p>[...] not found)  Posted by News On February 1st, 2011 / No Comments     I&#8217;m using the code from John McKerrel to resize IFrames across domains (sample code is in a zip file there), there is an updated (bloated) version on CSS-Tricks: Cross [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#124; Matthew D. Leichty</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-64124</link>
		<dc:creator>&#124; Matthew D. Leichty</dc:creator>
		<pubDate>Thu, 06 Jan 2011 23:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-64124</guid>
		<description>[...] Problem #2: I didn&#8217;t want the iframe to have a scrollbar, so I needed some kind of auto-resizing script.  However, the ASP application couldn&#8217;t execute correctly in the SharePoint web directory, so the SharePoint site and the old web app were on two separate domains.  Therefore, I needed a cross-site iframe resizing solution.  Fortunately, they exist. [...]</description>
		<content:encoded><![CDATA[<p>[...] Problem #2: I didn&#8217;t want the iframe to have a scrollbar, so I needed some kind of auto-resizing script.  However, the ASP application couldn&#8217;t execute correctly in the SharePoint web directory, so the SharePoint site and the old web app were on two separate domains.  Therefore, I needed a cross-site iframe resizing solution.  Fortunately, they exist. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike alias NuganX</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-54259</link>
		<dc:creator>Mike alias NuganX</dc:creator>
		<pubDate>Mon, 30 Aug 2010 16:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-54259</guid>
		<description>200$USD contract offer!-------------------

Hi, I need to get some coding work done using the technique described here. I am willing to pay to get it working. Here is my problem:

This is working:
I have a main window, which sends a search query to the google search box form in an iframe. So the search results are displayed normally in the Google interface in the iframe (target=iframe). So all the code to obtain and display the proper results in Google is already working.

I now want to extract the Google search results found in the iframe, so in the main frame I tried to do:

  
function getContentFromIframe()
{
   var myIFrame = document.getElementById(&quot;iframeid&quot;);
   var test = myIFrame.contentWindow.document.getElementById(&quot;nr_container&quot;).innerHTML;  
   document.getElementById(&quot;resultdiv&quot;).innerHTML = test;
}  


But access is denied, so I presume it has something to do with the Same Origin Policy, as it is cross-domain scripting.

I presume I need to retrieve the innerHTML of &quot;nr_container&quot;, which is the id of the div where results are injected in the Google search results page, and pass it to my main frame, but I need more access. I downloaded the example here, and it seems to be the solution I need, but I can&#039;t figure out how to make it work properly. Please send me an e-mail if you are welling to help me figuring out how to set up the solution and make some tests.

I am welling to pay up to 200$USD to the first person that will resolve this problem.
I will pay using International Money Order.

Please help me!</description>
		<content:encoded><![CDATA[<p>200$USD contract offer!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Hi, I need to get some coding work done using the technique described here. I am willing to pay to get it working. Here is my problem:</p>
<p>This is working:<br />
I have a main window, which sends a search query to the google search box form in an iframe. So the search results are displayed normally in the Google interface in the iframe (target=iframe). So all the code to obtain and display the proper results in Google is already working.</p>
<p>I now want to extract the Google search results found in the iframe, so in the main frame I tried to do:</p>
<p>function getContentFromIframe()<br />
{<br />
   var myIFrame = document.getElementById(&#8220;iframeid&#8221;);<br />
   var test = myIFrame.contentWindow.document.getElementById(&#8220;nr_container&#8221;).innerHTML;<br />
   document.getElementById(&#8220;resultdiv&#8221;).innerHTML = test;<br />
}  </p>
<p>But access is denied, so I presume it has something to do with the Same Origin Policy, as it is cross-domain scripting.</p>
<p>I presume I need to retrieve the innerHTML of &#8220;nr_container&#8221;, which is the id of the div where results are injected in the Google search results page, and pass it to my main frame, but I need more access. I downloaded the example here, and it seems to be the solution I need, but I can&#8217;t figure out how to make it work properly. Please send me an e-mail if you are welling to help me figuring out how to set up the solution and make some tests.</p>
<p>I am welling to pay up to 200$USD to the first person that will resolve this problem.<br />
I will pay using International Money Order.</p>
<p>Please help me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cindy</title>
		<link>http://blog.johnmckerrell.com/2006/10/22/resizing-iframes-across-domains/comment-page-2/#comment-50483</link>
		<dc:creator>Cindy</dc:creator>
		<pubDate>Tue, 15 Jun 2010 16:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johnmckerrell.com/?p=4#comment-50483</guid>
		<description>Works great other than decreasing the iFrame to a shorter height.

Could you show code for measuring height of div to find out what the height of the content is rather than the height of the element as suggested in your last post?</description>
		<content:encoded><![CDATA[<p>Works great other than decreasing the iFrame to a shorter height.</p>
<p>Could you show code for measuring height of div to find out what the height of the content is rather than the height of the element as suggested in your last post?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

