<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iframe &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/iframe/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Scroll an IFRAME Content to a Predefined Position</title>
		<link>/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/</link>
		<comments>/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 11:43:36 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[absolute iframe content]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">/?p=2238</guid>
		<description><![CDATA[IFRAME Source Usually when you use an IFRAME tag to link an external source the page that&#8217;s referenced by the SRC attributes is loaded at the top left corner. This is the default behavior, but sometimes you&#8217;d like to show to your users not the entire page from the top left corner, but to show &#8230; <a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" class="more-link">Continue reading <span class="screen-reader-text">Scroll an IFRAME Content to a Predefined Position</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/04/24/scroll-the-page-with-javascript/" rel="bookmark" title="Scroll the page with JavaScript">Scroll the page with JavaScript </a></li>
<li><a href="/2010/01/24/css-default-position-value/" rel="bookmark" title="CSS default position value">CSS default position value </a></li>
<li><a href="/2009/06/11/remove-iframe-border-on-ie/" rel="bookmark" title="remove iframe border on IE">remove iframe border on IE </a></li>
<li><a href="/2009/11/10/jquery-css-functions-part-1-offset/" rel="bookmark" title="jQuery CSS functions. Part 1 &#8211; offset()">jQuery CSS functions. Part 1 &#8211; offset() </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>IFRAME Source</h2>
<p>Usually when you use an <a href="/tag/iframe/">IFRAME</a> tag to link an external source the page that&#8217;s referenced by the SRC attributes is loaded at the top left corner. This is the default behavior, but sometimes you&#8217;d like to show to your users not the entire page from the top left corner, but to show only part of the external page instead.</p>
<p>In most of the cases the reference is external and you don&#8217;t have control over the external page. Thus you&#8217;ve to scroll the IFRAME content to the desired position. This of course is impossible. Yeah, there are some JavaScript hacks, but they&#8217;re all a bad solution, because the scrolling occurs only after the page is loaded.</p>
<h2>The Solution</h2>
<p>You can wrap the <a href="/tag/iframe/">IFRAME</a> into a div and scroll the DIV content using absolute TOP and LEFT <a href="/tag/css/">CSS</a> properties.</p>
<p>Here&#8217;s an example:</p>
<pre lang="css">
#my-div
{
    width    : 400px;
    height   : 200px;
    overflow : hidden;
    position : relative;
}

#my-iframe
{
    position : absolute;
    top      : -100px;
    left     : -100px;
    width    : 1280px;
    height   : 1200px;
}
</pre>
<p>Here you have one DIV with dimensions 400x200px. Now by moving the IFRAME within it you can position it on the right place.</p>
<pre lang="html4strict">
<div id="my-div">
<iframe src="http://www.example.com/" id="my-iframe" scrolling="no"></iframe>
</div>
</pre>
<p><span id="more-2238"></span><br />
Example with the awesome <a href="http://www.yahoo.com/" target="_blank" title="Yahoo! Homepage">Yahoo! Homepage</a>:<br />
<iframe src="http://stoimen.com/projects/iframe.scrolled.content/" scrolling="no" frameborder="0" style="width:400px;height:390px"></iframe></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/04/24/scroll-the-page-with-javascript/" rel="bookmark" title="Scroll the page with JavaScript">Scroll the page with JavaScript </a></li>
<li><a href="/2010/01/24/css-default-position-value/" rel="bookmark" title="CSS default position value">CSS default position value </a></li>
<li><a href="/2009/06/11/remove-iframe-border-on-ie/" rel="bookmark" title="remove iframe border on IE">remove iframe border on IE </a></li>
<li><a href="/2009/11/10/jquery-css-functions-part-1-offset/" rel="bookmark" title="jQuery CSS functions. Part 1 &#8211; offset()">jQuery CSS functions. Part 1 &#8211; offset() </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>javascript: detect browser speed and load the &#8220;slow connection&#8221; site version</title>
		<link>/2009/07/24/javascript-detect-browser-speed-and-load-the-slow-connection-site/</link>
		<comments>/2009/07/24/javascript-detect-browser-speed-and-load-the-slow-connection-site/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 06:29:30 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[low fidelity]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">/?p=687</guid>
		<description><![CDATA[How to detect the browser speed? It&#8217;s easy, you just put a ajax or image load in the beginning of the page and than you know what the speed is. But the problem is that the ajax and the image load need to finish to know exactly how slow or fast the connections is. And &#8230; <a href="/2009/07/24/javascript-detect-browser-speed-and-load-the-slow-connection-site/" class="more-link">Continue reading <span class="screen-reader-text">javascript: detect browser speed and load the &#8220;slow connection&#8221; site version</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/01/31/speed-up-the-javascript-it-can-change-dramatically-the-user-experience/" rel="bookmark" title="Speed up the JavaScript. It can change dramatically the user experience.">Speed up the JavaScript. It can change dramatically the user experience. </a></li>
<li><a href="/2010/02/11/javascript-optimization-lazy-loading/" rel="bookmark" title="JavaScript optimization. Lazy loading.">JavaScript optimization. Lazy loading. </a></li>
<li><a href="/2010/02/09/optimizing-openlayers-speed-up-markers-load-time/" rel="bookmark" title="Optimizing OpenLayers. Speed up markers load time!">Optimizing OpenLayers. Speed up markers load time! </a></li>
<li><a href="/2009/04/14/load-flash-swf-in-hidden-div/" rel="bookmark" title="load flash .swf in hidden div">load flash .swf in hidden div </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>How to detect the browser speed?</h2>
<p>It&#8217;s easy, you just put a ajax or image load in the beginning of the page and than you know what the speed is. But the problem is that the ajax and the image load need to finish to know exactly how slow or fast the connections is. And even worse, you need to slow down the page even for normal (fast) connections. And where&#8217;s the point? You get the site slower only to understand the connection. That&#8217;s not OK.</p>
<p><img class="alignnone size-full wp-image-697" title="slow-connection-detection" src="/wp-content/uploads/2009/07/slow-connection-detection.png" alt="" width="430" height="133" srcset="/wp-content/uploads/2009/07/slow-connection-detection.png 430w, /wp-content/uploads/2009/07/slow-connection-detection-300x92.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></p>
<h2>The javascript blocks the page load</h2>
<p>That&#8217;s another problem with javascript. You know when you have script tag in the head of the document, the browser needs to finish loading this javascript, parse it and than continue loading.</p>
<h2>How javascript can be loaded async</h2>
<p>Well there are several methods, but here we need only one separate javascript that don&#8217;t communicate with other JS code in the site, it only get information about the connection speed.</p>
<h2>Put the javascript code in an Iframe.</h2>
<p>Than the loading of that javascript is async. Independently you continue loading the site. For fast connection, yes this going to slow down a little bit, but however not as much as if you put an inline code. Than in that iframe you can simply check for an expression to verify for a slow connection if it&#8217;s true you may set a cookie for slow connection site version and reload the window.parent of the iframe, which is the page itself.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/01/31/speed-up-the-javascript-it-can-change-dramatically-the-user-experience/" rel="bookmark" title="Speed up the JavaScript. It can change dramatically the user experience.">Speed up the JavaScript. It can change dramatically the user experience. </a></li>
<li><a href="/2010/02/11/javascript-optimization-lazy-loading/" rel="bookmark" title="JavaScript optimization. Lazy loading.">JavaScript optimization. Lazy loading. </a></li>
<li><a href="/2010/02/09/optimizing-openlayers-speed-up-markers-load-time/" rel="bookmark" title="Optimizing OpenLayers. Speed up markers load time!">Optimizing OpenLayers. Speed up markers load time! </a></li>
<li><a href="/2009/04/14/load-flash-swf-in-hidden-div/" rel="bookmark" title="load flash .swf in hidden div">load flash .swf in hidden div </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/07/24/javascript-detect-browser-speed-and-load-the-slow-connection-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>remove iframe border on IE</title>
		<link>/2009/06/11/remove-iframe-border-on-ie/</link>
		<comments>/2009/06/11/remove-iframe-border-on-ie/#respond</comments>
		<pubDate>Thu, 11 Jun 2009 06:24:27 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[frameborder]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">/?p=600</guid>
		<description><![CDATA[Well if both style=&#8221;border:[0&#124;none]&#8221; is working and border=&#8221;0&#8243; attribute doesn&#8217;t help, and all this is not working only on IE, the solution is &#8230; frameborder=&#8221;0&#8243; attribute &#60;iframe frameborder=&#8221;0&#8243; &#8230; &#62;&#60;/iframe&#62; is helping<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/10/google-adsense-iframes-and-ie/" rel="bookmark" title="Google Adsense, iframes and IE">Google Adsense, iframes and IE </a></li>
<li><a href="/2010/02/12/css-border-radius-vs-images/" rel="bookmark" title="CSS border-radius vs. images!">CSS border-radius vs. images! </a></li>
<li><a href="/2010/02/17/htc-round-the-corners-on-ie/" rel="bookmark" title="HTC?! Round the corners on IE!">HTC?! Round the corners on IE! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Well if both style=&#8221;border:[0|none]&#8221; is working and border=&#8221;0&#8243; attribute doesn&#8217;t help, and all this is not working only on IE, the solution is &#8230;</p>
<p>frameborder=&#8221;0&#8243; attribute</p>
<blockquote><p>&lt;iframe frameborder=&#8221;0&#8243; &#8230; &gt;&lt;/iframe&gt; is helping</p></blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/10/google-adsense-iframes-and-ie/" rel="bookmark" title="Google Adsense, iframes and IE">Google Adsense, iframes and IE </a></li>
<li><a href="/2010/02/12/css-border-radius-vs-images/" rel="bookmark" title="CSS border-radius vs. images!">CSS border-radius vs. images! </a></li>
<li><a href="/2010/02/17/htc-round-the-corners-on-ie/" rel="bookmark" title="HTC?! Round the corners on IE!">HTC?! Round the corners on IE! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/11/remove-iframe-border-on-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Adsense, iframes and IE</title>
		<link>/2009/06/10/google-adsense-iframes-and-ie/</link>
		<comments>/2009/06/10/google-adsense-iframes-and-ie/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 12:20:11 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[google adsense]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">/?p=598</guid>
		<description><![CDATA[What a lovely combination Recently I wrote an article about the Google Adsense problem with page load blocking and than the solution was simple and elegant. You must put your ad in a separate .html file and to include it into your page with an iframe. That gives the page the ability to &#8220;breath&#8221; and &#8230; <a href="/2009/06/10/google-adsense-iframes-and-ie/" class="more-link">Continue reading <span class="screen-reader-text">Google Adsense, iframes and IE</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/06/10/google-adsense-blocks-the-page-load/" rel="bookmark" title="Google Adsense blocks the page load">Google Adsense blocks the page load </a></li>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/11/remove-iframe-border-on-ie/" rel="bookmark" title="remove iframe border on IE">remove iframe border on IE </a></li>
<li><a href="/2010/02/10/manage-javascript-and-css-includes-within-zend-framework-application/" rel="bookmark" title="Manage JavaScript and CSS includes within Zend Framework application">Manage JavaScript and CSS includes within Zend Framework application </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What a lovely combination</h2>
<p>Recently I wrote an article about the Google Adsense problem with page load blocking and than the solution was simple and elegant. You must put your ad in a separate .html file and to include it into your page with an iframe. That gives the page the ability to &#8220;breath&#8221; and to load faster.</p>
<p>You can see the entire article <a title="Google Adsense in iframe" href="/2009/06/10/google-adsense-blocks-the-page-load/" target="_self">here</a>.</p>
<h2>When everything&#8217;s OK, wait for the IE</h2>
<p>Yes as usual every browser loaded the iframe correclty, except &#8230; <span id="more-598"></span>IE. Both 6 and 7. What was the problem of that lovely browser? Just as I mentioned in my previous article, I put the Google generated code chunk in a .html file and include it with an iframe.</p>
<p>So far so good. But was actually stoped in on IE. All the developer plugins of IE were incapable of helping me.</p>
<h2>Finally the solution</h2>
<p>The solution itself is so strange and stupid. The file you include your ad banner should be named &#8220;index&#8221;. If you have three ads on your page, and three iframes you must include three index.html files, obviously from different directories. That finally made IE working as the other world.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/06/10/google-adsense-blocks-the-page-load/" rel="bookmark" title="Google Adsense blocks the page load">Google Adsense blocks the page load </a></li>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/11/remove-iframe-border-on-ie/" rel="bookmark" title="remove iframe border on IE">remove iframe border on IE </a></li>
<li><a href="/2010/02/10/manage-javascript-and-css-includes-within-zend-framework-application/" rel="bookmark" title="Manage JavaScript and CSS includes within Zend Framework application">Manage JavaScript and CSS includes within Zend Framework application </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/10/google-adsense-iframes-and-ie/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
