<?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 Websites with jQuery and extJS</title>
	<atom:link href="http://blog.westhost.com/2009/01/13/dynamic-websites-with-jquery-and-extjs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.westhost.com/blog/2009/01/13/dynamic-websites-with-jquery-and-extjs/</link>
	<description>News, Announcements &#38; More</description>
	<lastBuildDate>Tue, 01 Nov 2011 13:20:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Html Website Designing at India</title>
		<link>http://www.westhost.com/blog/2009/01/13/dynamic-websites-with-jquery-and-extjs/comment-page-1/#comment-9415</link>
		<dc:creator>Html Website Designing at India</dc:creator>
		<pubDate>Sat, 02 May 2009 12:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.westhost.com/blog/?p=137#comment-9415</guid>
		<description>Great resource,Your blog is great with beneficial content that is helpful to everyone. Thank for Post.............</description>
		<content:encoded><![CDATA[<p>Great resource,Your blog is great with beneficial content that is helpful to everyone. Thank for Post&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Michaelis</title>
		<link>http://www.westhost.com/blog/2009/01/13/dynamic-websites-with-jquery-and-extjs/comment-page-1/#comment-5961</link>
		<dc:creator>Christopher Michaelis</dc:creator>
		<pubDate>Thu, 19 Feb 2009 15:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.westhost.com/blog/?p=137#comment-5961</guid>
		<description>Setiawan,

The code got stripped out of that last comment. Let me try again:

&lt;?php

$v = $_REQUEST[&#039;a&#039;];
$ok = array(&#039;www.google.com&#039;, &#039;en.wikipedia.org/wiki/Goal&#039;, &#039;www.harvard.edu&#039;, &#039;web.mit.edu&#039;, &#039;www.google.com&#039;, &#039;www.yahoo.com&#039;, &#039;www.msn.com&#039;);
if (!in_array(str_replace(&quot;http://&quot;, &quot;&quot;, $v), $ok))
{
	echo &quot;Please visit only pages the author has deemed safe from within these tabs.&quot;;
	exit(0);
}
?&gt;&lt;iframe src=&quot;&lt;?php echo ($_REQUEST[&#039;a&#039;]);?&gt;&quot; width=&quot;100%&quot; height=&quot;100%&quot; frameborder=&quot;no&quot;&gt;&lt;/iframe&gt;

Thanks,
--Chris</description>
		<content:encoded><![CDATA[<p>Setiawan,</p>
<p>The code got stripped out of that last comment. Let me try again:</p>
<p>&lt;?php</p>
<p>$v = $_REQUEST['a'];<br />
$ok = array(&#8216;www.google.com&#8217;, &#8216;en.wikipedia.org/wiki/Goal&#8217;, &#8216;www.harvard.edu&#8217;, &#8216;web.mit.edu&#8217;, &#8216;www.google.com&#8217;, &#8216;www.yahoo.com&#8217;, &#8216;www.msn.com&#8217;);<br />
if (!in_array(str_replace(&quot;http://&quot;, &quot;&quot;, $v), $ok))<br />
{<br />
	echo &quot;Please visit only pages the author has deemed safe from within these tabs.&quot;;<br />
	exit(0);<br />
}<br />
?&gt;&lt;iframe src=&quot;&lt;?php echo ($_REQUEST['a']);?&gt;&quot; width=&quot;100%&quot; height=&quot;100%&quot; frameborder=&quot;no&quot;&gt;&lt;/iframe&gt;</p>
<p>Thanks,<br />
&#8211;Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Michaelis</title>
		<link>http://www.westhost.com/blog/2009/01/13/dynamic-websites-with-jquery-and-extjs/comment-page-1/#comment-5959</link>
		<dc:creator>Christopher Michaelis</dc:creator>
		<pubDate>Thu, 19 Feb 2009 15:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.westhost.com/blog/?p=137#comment-5959</guid>
		<description>Hi Setiawan,

Sure, I&#039;d be happy to give you that code. It&#039;s pretty short and sweet; basically, it just assembles a list of allowed URLs (in $ok) and ensures that the requested URL is one of them. If not, it displays a warning; if it is an accepted URL, the page just prints out an iframe that pulls in the URL.

There are some better/cleaner ways to accomplish this, but for a quick solution that&#039;s reasonably secure this works just fine. Note that using this loadpage.php &quot;jump point&quot; is only necessary if the page you want to load resides on a different domain than your own, because of security restrictions present in most browsers these days. If you&#039;re loading a page from your own site, you can load it directly:

&lt;a href=&quot;void(0);&quot; rel=&quot;nofollow&quot;&gt;

Here&#039;s that code:

&lt;iframe src=&quot;&quot; width=&quot;100%&quot; height=&quot;100%&quot; frameborder=&quot;no&quot;&gt;

Good luck!
--Chris</description>
		<content:encoded><![CDATA[<p>Hi Setiawan,</p>
<p>Sure, I&#8217;d be happy to give you that code. It&#8217;s pretty short and sweet; basically, it just assembles a list of allowed URLs (in $ok) and ensures that the requested URL is one of them. If not, it displays a warning; if it is an accepted URL, the page just prints out an iframe that pulls in the URL.</p>
<p>There are some better/cleaner ways to accomplish this, but for a quick solution that&#8217;s reasonably secure this works just fine. Note that using this loadpage.php &#8220;jump point&#8221; is only necessary if the page you want to load resides on a different domain than your own, because of security restrictions present in most browsers these days. If you&#8217;re loading a page from your own site, you can load it directly:</p>
<p><a href="void(0);" rel="nofollow"></p>
<p>Here&#8217;s that code:</p>
<p>&lt;iframe src=&#8221;" width=&#8221;100%&#8221; height=&#8221;100%&#8221; frameborder=&#8221;no&#8221;&gt;</p>
<p>Good luck!<br />
&#8211;Chris</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: setiawan</title>
		<link>http://www.westhost.com/blog/2009/01/13/dynamic-websites-with-jquery-and-extjs/comment-page-1/#comment-5956</link>
		<dc:creator>setiawan</dc:creator>
		<pubDate>Thu, 19 Feb 2009 11:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.westhost.com/blog/?p=137#comment-5956</guid>
		<description>hi there...
I&#039;m beginner on PHP and Javascript
Can you tell me the code for loadpage.php ??

regards</description>
		<content:encoded><![CDATA[<p>hi there&#8230;<br />
I&#8217;m beginner on PHP and Javascript<br />
Can you tell me the code for loadpage.php ??</p>
<p>regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

