<?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"
	>
<channel>
	<title>Comments on: How to access iframe in jQuery</title>
	<atom:link href="http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/</link>
	<description>simple things, simple notes</description>
	<pubDate>Sun, 01 Aug 2010 09:26:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: RayMan</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3654</link>
		<dc:creator>RayMan</dc:creator>
		<pubDate>Mon, 12 Jul 2010 09:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3654</guid>
		<description>not working in external sever.</description>
		<content:encoded><![CDATA[<p>not working in external sever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TigerLily</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3651</link>
		<dc:creator>TigerLily</dc:creator>
		<pubDate>Mon, 28 Jun 2010 21:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3651</guid>
		<description>Thanks for posting this. It was of great help to me.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. It was of great help to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rady RIn</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3650</link>
		<dc:creator>Rady RIn</dc:creator>
		<pubDate>Thu, 03 Jun 2010 06:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3650</guid>
		<description>I follow all of you not works!

How can I do?
Can anyone help me please?</description>
		<content:encoded><![CDATA[<p>I follow all of you not works!</p>
<p>How can I do?<br />
Can anyone help me please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vio</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3644</link>
		<dc:creator>Vio</dc:creator>
		<pubDate>Mon, 08 Mar 2010 12:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3644</guid>
		<description>This is all fine, but what happens if you want to get content that is sitting between two comment tags? 

Example:


&lt;!-- Content Begin --&gt;

&lt;!-- Content End --&gt;
</description>
		<content:encoded><![CDATA[<p>This is all fine, but what happens if you want to get content that is sitting between two comment tags? </p>
<p>Example:</p>
<p><!-- Content Begin --></p>
<p><!-- Content End --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: psy</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3639</link>
		<dc:creator>psy</dc:creator>
		<pubDate>Tue, 09 Feb 2010 07:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3639</guid>
		<description>This work for me.
$('#iframe-name').contents().find('#frame-do-you-want-get')

Example:
$('#TB_iframeContent').contents().find('#wrapper').css('display','block');

Thanks bro.</description>
		<content:encoded><![CDATA[<p>This work for me.<br />
$(&#8217;#iframe-name&#8217;).contents().find(&#8217;#frame-do-you-want-get&#8217;)</p>
<p>Example:<br />
$(&#8217;#TB_iframeContent&#8217;).contents().find(&#8217;#wrapper&#8217;).css(&#8217;display&#8217;,'block&#8217;);</p>
<p>Thanks bro.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apps</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3636</link>
		<dc:creator>apps</dc:creator>
		<pubDate>Tue, 19 Jan 2010 19:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3636</guid>
		<description>hello all 
what to do if the domain is different ?

i want a jquery which will hide some of the div from the the website in the iframe from the different domain.</description>
		<content:encoded><![CDATA[<p>hello all<br />
what to do if the domain is different ?</p>
<p>i want a jquery which will hide some of the div from the the website in the iframe from the different domain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: videolar</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3635</link>
		<dc:creator>videolar</dc:creator>
		<pubDate>Tue, 19 Jan 2010 12:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3635</guid>
		<description>thanx a lot bro, i found this ..</description>
		<content:encoded><![CDATA[<p>thanx a lot bro, i found this ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Stanton</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3633</link>
		<dc:creator>Karl Stanton</dc:creator>
		<pubDate>Fri, 08 Jan 2010 17:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3633</guid>
		<description>I found this very helpful, thank you!!</description>
		<content:encoded><![CDATA[<p>I found this very helpful, thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vectorvend</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3630</link>
		<dc:creator>vectorvend</dc:creator>
		<pubDate>Tue, 22 Dec 2009 12:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3630</guid>
		<description>@Taras, @cbsides Thank you very much got it working</description>
		<content:encoded><![CDATA[<p>@Taras, @cbsides Thank you very much got it working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3629</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 21 Dec 2009 09:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3629</guid>
		<description>This was a very big help.
i spent hours trying to maniuplate the iframe.
thanks a lot</description>
		<content:encoded><![CDATA[<p>This was a very big help.<br />
i spent hours trying to maniuplate the iframe.<br />
thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cbsides</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3628</link>
		<dc:creator>cbsides</dc:creator>
		<pubDate>Wed, 16 Dec 2009 21:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3628</guid>
		<description>If anyone is still having trouble with selecting iframe contents w/jQuery I've verified this as working (keep in mind the iframe must be in the same domain as the accessing page, as mentioned above):



var myFrame = $('#myFrameId');
myFrame.load(function() {	// wait for iframe to load
	myFrame.contents().find('#myElementInFrame').html('hello world!');
});</description>
		<content:encoded><![CDATA[<p>If anyone is still having trouble with selecting iframe contents w/jQuery I&#8217;ve verified this as working (keep in mind the iframe must be in the same domain as the accessing page, as mentioned above):</p>
<p>var myFrame = $(&#8217;#myFrameId&#8217;);<br />
myFrame.load(function() {	// wait for iframe to load<br />
	myFrame.contents().find(&#8217;#myElementInFrame&#8217;).html(&#8217;hello world!&#8217;);<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: izdelava spletne strani</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3624</link>
		<dc:creator>izdelava spletne strani</dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3624</guid>
		<description>These iframes are getting on my nerves. I can't get it right ...</description>
		<content:encoded><![CDATA[<p>These iframes are getting on my nerves. I can&#8217;t get it right &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shubhajeet Sinha</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3485</link>
		<dc:creator>Shubhajeet Sinha</dc:creator>
		<pubDate>Fri, 23 Oct 2009 14:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3485</guid>
		<description>This is not working for me. Please help me for this. I am posting the jquery code here

the id of iframe is #depGridFrame

$('#depGridFrame').ready(function()
   {
	   alert($(this).contents().find('#updtGrid').tagName);
	});

i am calling it from document.ready function of parent document.</description>
		<content:encoded><![CDATA[<p>This is not working for me. Please help me for this. I am posting the jquery code here</p>
<p>the id of iframe is #depGridFrame</p>
<p>$(&#8217;#depGridFrame&#8217;).ready(function()<br />
   {<br />
	   alert($(this).contents().find(&#8217;#updtGrid&#8217;).tagName);<br />
	});</p>
<p>i am calling it from document.ready function of parent document.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3484</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Fri, 16 Oct 2009 11:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3484</guid>
		<description>Thaks! thats help me and work for me.</description>
		<content:encoded><![CDATA[<p>Thaks! thats help me and work for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3482</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Wed, 30 Sep 2009 12:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3482</guid>
		<description>I have done so much in Jquery and have learned most tricks of the trade but this is probably the best thing I have ever come across. I am so excited about the endless posibilitys that this will bring. Thanks sooooooooo much for sharing!</description>
		<content:encoded><![CDATA[<p>I have done so much in Jquery and have learned most tricks of the trade but this is probably the best thing I have ever come across. I am so excited about the endless posibilitys that this will bring. Thanks sooooooooo much for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sophisticado</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3476</link>
		<dc:creator>sophisticado</dc:creator>
		<pubDate>Tue, 01 Sep 2009 21:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3476</guid>
		<description>Good stuff here.  My question is how can a script embedded in the document within the iframe close the entire jquery dialog which was called from the parent?</description>
		<content:encoded><![CDATA[<p>Good stuff here.  My question is how can a script embedded in the document within the iframe close the entire jquery dialog which was called from the parent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fer</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3472</link>
		<dc:creator>fer</dc:creator>
		<pubDate>Fri, 24 Jul 2009 15:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3472</guid>
		<description>Thanks !</description>
		<content:encoded><![CDATA[<p>Thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mos</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3469</link>
		<dc:creator>mos</dc:creator>
		<pubDate>Fri, 03 Jul 2009 17:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3469</guid>
		<description>if in reverst,
div id=list     /div

iframe src=abc.com


how can i output the value from the abc.com into “list”

thanks,</description>
		<content:encoded><![CDATA[<p>if in reverst,<br />
div id=list     /div</p>
<p>iframe src=abc.com</p>
<p>how can i output the value from the abc.com into “list”</p>
<p>thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mos</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3468</link>
		<dc:creator>mos</dc:creator>
		<pubDate>Fri, 03 Jul 2009 17:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3468</guid>
		<description>if in reverst,




how can i out the value from the abc.com into "list"

thanks,</description>
		<content:encoded><![CDATA[<p>if in reverst,</p>
<p>how can i out the value from the abc.com into &#8220;list&#8221;</p>
<p>thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3467</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 26 Jun 2009 19:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3467</guid>
		<description>Thanks a ton for posting this.  I didn't read the comments but I'm sure somewhere up there, someone is trying to prove that they're smarter than you...just the nature of being a web developer I suppose.  Just know that I'm sure this little piece of code probably saved someone their job at some point...me, just saved me from losing another day of work trying to figure this out, lol.</description>
		<content:encoded><![CDATA[<p>Thanks a ton for posting this.  I didn&#8217;t read the comments but I&#8217;m sure somewhere up there, someone is trying to prove that they&#8217;re smarter than you&#8230;just the nature of being a web developer I suppose.  Just know that I&#8217;m sure this little piece of code probably saved someone their job at some point&#8230;me, just saved me from losing another day of work trying to figure this out, lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3465</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 17 Jun 2009 12:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3465</guid>
		<description>hi 
I'm trying to add script tag to the Head of the Iframe but it doesn't work

can you help me with that, this is my code

$(iframe).contents().find('head').html(''
	+ '');

the css file included correctly but the script tag no
any help</description>
		<content:encoded><![CDATA[<p>hi<br />
I&#8217;m trying to add script tag to the Head of the Iframe but it doesn&#8217;t work</p>
<p>can you help me with that, this is my code</p>
<p>$(iframe).contents().find(&#8217;head&#8217;).html(&#8221;<br />
	+ &#8221;);</p>
<p>the css file included correctly but the script tag no<br />
any help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paisal</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3464</link>
		<dc:creator>Paisal</dc:creator>
		<pubDate>Tue, 16 Jun 2009 11:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3464</guid>
		<description>Thankyou so much, How about iframe 2 level deep (get value from iframe inside iframe). 

Best regards,</description>
		<content:encoded><![CDATA[<p>Thankyou so much, How about iframe 2 level deep (get value from iframe inside iframe). </p>
<p>Best regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dals</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3462</link>
		<dc:creator>Dals</dc:creator>
		<pubDate>Thu, 04 Jun 2009 07:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3462</guid>
		<description>2 Nate:
I think, for jQuery way we can get

var iframeRef  = document.getElementById(’iframeID’);

by simple:

var iframeRef = $('#iframeID');</description>
		<content:encoded><![CDATA[<p>2 Nate:<br />
I think, for jQuery way we can get</p>
<p>var iframeRef  = document.getElementById(’iframeID’);</p>
<p>by simple:</p>
<p>var iframeRef = $(&#8217;#iframeID&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khris7</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3461</link>
		<dc:creator>khris7</dc:creator>
		<pubDate>Thu, 28 May 2009 18:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3461</guid>
		<description>Taras hey! Thank you very much!!
this tiny bit of information saved me hours of working. ^^</description>
		<content:encoded><![CDATA[<p>Taras hey! Thank you very much!!<br />
this tiny bit of information saved me hours of working. ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bitlimakina</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3458</link>
		<dc:creator>bitlimakina</dc:creator>
		<pubDate>Wed, 20 May 2009 18:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3458</guid>
		<description>thx.</description>
		<content:encoded><![CDATA[<p>thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3457</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Thu, 14 May 2009 05:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3457</guid>
		<description>Hi, I've looked at the code suggested by Taras and Mike; thanks guys. But I found that neither of them work very well. Jquery converts HTML objects into object objects, which restricts the abilities of manipulating iframes. I found that a better approach to address an iframe is using the best of both worlds:

var iframeRef = document.getElementById('iframeID');
$(iframeRef).find('html').html('your content here');</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve looked at the code suggested by Taras and Mike; thanks guys. But I found that neither of them work very well. Jquery converts HTML objects into object objects, which restricts the abilities of manipulating iframes. I found that a better approach to address an iframe is using the best of both worlds:</p>
<p>var iframeRef = document.getElementById(&#8217;iframeID&#8217;);<br />
$(iframeRef).find(&#8217;html&#8217;).html(&#8217;your content here&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3456</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 11 May 2009 17:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3456</guid>
		<description>sure... just:
[code]
frameId.someFunction(params);
[/code]

(assuming )
at least that works in firefox 3.0.10...

cheers, matt</description>
		<content:encoded><![CDATA[<p>sure&#8230; just:<br />
[code]<br />
frameId.someFunction(params);<br />
[/code]</p>
<p>(assuming )<br />
at least that works in firefox 3.0.10&#8230;</p>
<p>cheers, matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _ts_</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3455</link>
		<dc:creator>_ts_</dc:creator>
		<pubDate>Tue, 07 Apr 2009 11:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3455</guid>
		<description>2 Taras
Thank you. I've already found the solution for my question.

But I've another one.

if iFrame has some function named as "someFunction" and how can I call this function from parent window?

Thank you!</description>
		<content:encoded><![CDATA[<p>2 Taras<br />
Thank you. I&#8217;ve already found the solution for my question.</p>
<p>But I&#8217;ve another one.</p>
<p>if iFrame has some function named as &#8220;someFunction&#8221; and how can I call this function from parent window?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taras</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3452</link>
		<dc:creator>Taras</dc:creator>
		<pubDate>Fri, 03 Apr 2009 14:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3452</guid>
		<description>_ts_,
what you mean?

roberto,
you're welcome :)</description>
		<content:encoded><![CDATA[<p>_ts_,<br />
what you mean?</p>
<p>roberto,<br />
you&#8217;re welcome <img src='http://simple.procoding.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roberto</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3451</link>
		<dc:creator>roberto</dc:creator>
		<pubDate>Fri, 03 Apr 2009 14:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3451</guid>
		<description>thanks a lot. it works</description>
		<content:encoded><![CDATA[<p>thanks a lot. it works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _ts_</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3450</link>
		<dc:creator>_ts_</dc:creator>
		<pubDate>Fri, 03 Apr 2009 08:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3450</guid>
		<description>Hi fellas.
How can I pass param(s) to load handler?</description>
		<content:encoded><![CDATA[<p>Hi fellas.<br />
How can I pass param(s) to load handler?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taras</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3447</link>
		<dc:creator>Taras</dc:creator>
		<pubDate>Tue, 24 Mar 2009 12:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3447</guid>
		<description>Renatogarou, I think you can use this with TinyMCE, but I'm not familiar with it so unable to provide more help... Probably you can find information you're looking for in TinyMCE &lt;a href="http://tinymce.moxiecode.com/documentation.php" rel="nofollow"&gt;API documentation&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Renatogarou, I think you can use this with TinyMCE, but I&#8217;m not familiar with it so unable to provide more help&#8230; Probably you can find information you&#8217;re looking for in TinyMCE <a href="http://tinymce.moxiecode.com/documentation.php" rel="nofollow">API documentation</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renatogarou</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3439</link>
		<dc:creator>Renatogarou</dc:creator>
		<pubDate>Wed, 18 Mar 2009 12:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3439</guid>
		<description>Hello !
  Can I use this method for acess the content of Tinymce ? How ?
  

Sorry my English .</description>
		<content:encoded><![CDATA[<p>Hello !<br />
  Can I use this method for acess the content of Tinymce ? How ?</p>
<p>Sorry my English .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valtos</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3438</link>
		<dc:creator>Valtos</dc:creator>
		<pubDate>Wed, 11 Mar 2009 22:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3438</guid>
		<description>A reverse Proxy should be the right thing for your Problem. @rog</description>
		<content:encoded><![CDATA[<p>A reverse Proxy should be the right thing for your Problem. @rog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lando</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3435</link>
		<dc:creator>lando</dc:creator>
		<pubDate>Wed, 11 Feb 2009 15:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3435</guid>
		<description>you have no idea how invaluable this tidbit of knowledge has been for me</description>
		<content:encoded><![CDATA[<p>you have no idea how invaluable this tidbit of knowledge has been for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3434</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 13 Jan 2009 23:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-3434</guid>
		<description>Mike, I'm quite a jQuery noob, but:

* shouldn't it be $('#frame1').ready() instead of $('#frame1').load() ? "load" doesn't seem to trigger anything (but no errors either).

* doesn't $(this.contentDocument) refer to the current document instead of the iframes?</description>
		<content:encoded><![CDATA[<p>Mike, I&#8217;m quite a jQuery noob, but:</p>
<p>* shouldn&#8217;t it be $(&#8217;#frame1&#8242;).ready() instead of $(&#8217;#frame1&#8242;).load() ? &#8220;load&#8221; doesn&#8217;t seem to trigger anything (but no errors either).</p>
<p>* doesn&#8217;t $(this.contentDocument) refer to the current document instead of the iframes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taras</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-2119</link>
		<dc:creator>Taras</dc:creator>
		<pubDate>Thu, 27 Nov 2008 03:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-2119</guid>
		<description>Нема за що ))</description>
		<content:encoded><![CDATA[<p>Нема за що ))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yAnTar</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-2035</link>
		<dc:creator>yAnTar</dc:creator>
		<pubDate>Mon, 24 Nov 2008 09:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-2035</guid>
		<description>Good work, very thanks.</description>
		<content:encoded><![CDATA[<p>Good work, very thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rog</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-258</link>
		<dc:creator>rog</dc:creator>
		<pubDate>Thu, 18 Sep 2008 18:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-258</guid>
		<description>thanks for your reply. i couldn't imagine that this would be possible - but it's good to know exactly the mechanics of how it works ... thanks.</description>
		<content:encoded><![CDATA[<p>thanks for your reply. i couldn&#8217;t imagine that this would be possible - but it&#8217;s good to know exactly the mechanics of how it works &#8230; thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-250</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 17 Sep 2008 23:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-250</guid>
		<description>Wow... didn't know html came through when posting. Please excuse the double post.

This didn’t work for me. One thing you must keep in mind is that just because the parent page is loaded or ready, doesn’t mean the frame is done. Here’s what i got to work (the first example):

&lt;code&gt;
&#60;html&#62;
&#160;&#160;&#160; &#60;head&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#60;title&#62;jQuery and Frames&#60;/title&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#60;script type=&#34;text/javascript&#34; src=&#34;jquery.js&#34;&#62;&#60;/script&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#60;script type=&#34;text/javascript&#34;&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery( function() {
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $('#frame1').load( function(){
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(this.contentDocument).find('body').html('This frame was modified with jQuery! Yay!!!')
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $('#frame2').load( function(){
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(this.contentDocument).find('body').html('This frame was modified with jQuery! Yay!!!')
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });
&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });
&#160;&#160;&#160; &#160;&#160;&#160; &#60;/script&#62;
&#160;&#160;&#160; &#60;/head&#62;
&#160;&#160;&#160; &#60;body&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#60;h2&#62;jQuery and Frames&#60;/h2&#62;
&#160;&#160;&#160; &#160;&#160;&#160; 
&#160;&#160;&#160; &#160;&#160;&#160; &#60;h4&#62;Frame from the &#60;i&#62;same&#60;/i&#62; domain as parent.&#60;/h4&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#60;iframe id=&#34;frame1&#34; src=&#34;iframe.html&#34;&#62;&#60;/iframe&#62;
&#160;&#160;&#160; &#160;&#160;&#160; 
&#160;&#160;&#160; &#160;&#160;&#160; &#60;h4&#62;Frame from a &#60;i&#62;different&#60;/i&#62; domain as parent.&#60;/h4&#62;
&#160;&#160;&#160; &#160;&#160;&#160; &#60;iframe id=&#34;frame2&#34; src=&#34;http://google.com&#34;&#62;&#60;/iframe&#62;
&#160;&#160;&#160; &#60;/body&#62;
&#60;/html&#62;
&lt;/code&gt;



rog, good thinking… but browsers follow similar rules with iframes as they do with xml_http_requests: that is, it blocks cross-domain access.

For example, if I am running the above script from the page: http://www.liveintensely.com/parent.html, I can read and write to the frame which’ source is http://www.liveintensely.com/iframe.html. HOWEVER, if the frame’s source is on a different domain, like http://www.google.com, javascript is denied both read and write access to the frame.</description>
		<content:encoded><![CDATA[<p>Wow&#8230; didn&#8217;t know html came through when posting. Please excuse the double post.</p>
<p>This didn’t work for me. One thing you must keep in mind is that just because the parent page is loaded or ready, doesn’t mean the frame is done. Here’s what i got to work (the first example):</p>
<p><code><br />
&lt;html&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;head&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;title&gt;jQuery and Frames&lt;/title&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;/script&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; jQuery( function() {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $('#frame1').load( function(){<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $(this.contentDocument).find('body').html('This frame was modified with jQuery! Yay!!!')<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; });<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $('#frame2').load( function(){<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $(this.contentDocument).find('body').html('This frame was modified with jQuery! Yay!!!')<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; });<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; });<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/script&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/head&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;body&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;h2&gt;jQuery and Frames&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;h4&gt;Frame from the &lt;i&gt;same&lt;/i&gt; domain as parent.&lt;/h4&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;iframe id=&quot;frame1&quot; src=&quot;iframe.html&quot;&gt;&lt;/iframe&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;h4&gt;Frame from a &lt;i&gt;different&lt;/i&gt; domain as parent.&lt;/h4&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;iframe id=&quot;frame2&quot; src=&quot;http://google.com&quot;&gt;&lt;/iframe&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/body&gt;<br />
&lt;/html&gt;<br />
</code></p>
<p>rog, good thinking… but browsers follow similar rules with iframes as they do with xml_http_requests: that is, it blocks cross-domain access.</p>
<p>For example, if I am running the above script from the page: <a href="http://www.liveintensely.com/parent.html" rel="nofollow">http://www.liveintensely.com/parent.html</a>, I can read and write to the frame which’ source is <a href="http://www.liveintensely.com/iframe.html" rel="nofollow">http://www.liveintensely.com/iframe.html</a>. HOWEVER, if the frame’s source is on a different domain, like <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>, javascript is denied both read and write access to the frame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-249</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 17 Sep 2008 23:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-249</guid>
		<description>This didn't work for me. One thing you must keep in mind is that just because the parent page is loaded or ready, doesn't mean the frame is done. Here's what i got to work:

&lt;code&gt;
[code]


	
		jQuery and Frames
		
		
			jQuery( function() {
				$('#frame1').load( function(){
					$(this.contentDocument).find('body').html('This frame was modified with jQuery! Yay!!!')
				});
				$('#frame2').load( function(){
					$(this.contentDocument).find('body').html('This frame was modified with jQuery! Yay!!!')
				});
			});
		
	
	
		jQuery and Frames
		
		Frame from the &lt;i&gt;same&lt;/i&gt; domain as parent.
		
		
		Frame from a &lt;i&gt;different&lt;/i&gt; domain as parent.
		
	


[code]
&lt;/code&gt;

rog, good thinking... but browsers follow similar rules with iframes as they do with xml_http_requests: that is, it blocks cross-domain access.

For example, if I am running the above script from the page: www.liveintensely.com/parent.html, I can read and write to the frame which' source is www.liveintensely.com/frame1.html. HOWEVER, if the frame's source is on a different domain, like www.google.com, javascript is denied both read and write access to the frame.</description>
		<content:encoded><![CDATA[<p>This didn&#8217;t work for me. One thing you must keep in mind is that just because the parent page is loaded or ready, doesn&#8217;t mean the frame is done. Here&#8217;s what i got to work:</p>
<p><code><br />
[code]</p>
<p>		jQuery and Frames</p>
<p>			jQuery( function() {<br />
				$(&#8217;#frame1&#8242;).load( function(){<br />
					$(this.contentDocument).find(&#8217;body&#8217;).html(&#8217;This frame was modified with jQuery! Yay!!!&#8217;)<br />
				});<br />
				$(&#8217;#frame2&#8242;).load( function(){<br />
					$(this.contentDocument).find(&#8217;body&#8217;).html(&#8217;This frame was modified with jQuery! Yay!!!&#8217;)<br />
				});<br />
			});</p>
<p>		jQuery and Frames</p>
<p>		Frame from the <i>same</i> domain as parent.</p>
<p>		Frame from a <i>different</i> domain as parent.</p>
<p>[code]<br />
</code></p>
<p>rog, good thinking&#8230; but browsers follow similar rules with iframes as they do with xml_http_requests: that is, it blocks cross-domain access.</p>
<p>For example, if I am running the above script from the page: <a href="http://www.liveintensely.com/parent.html" rel="nofollow">http://www.liveintensely.com/parent.html</a>, I can read and write to the frame which&#8217; source is <a href="http://www.liveintensely.com/frame1.html" rel="nofollow">http://www.liveintensely.com/frame1.html</a>. HOWEVER, if the frame&#8217;s source is on a different domain, like <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>, javascript is denied both read and write access to the frame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rog</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-247</link>
		<dc:creator>rog</dc:creator>
		<pubDate>Wed, 17 Sep 2008 22:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-247</guid>
		<description>i must be wrong somehow ... but, this is what I thought when i read your tip :: i deliver a web page, with an iframe in it with src of mail.google.com. i hide the iframe somewhere/how, and using the jquery code, read the content and post the interesting stuff back to my original server ... (?)</description>
		<content:encoded><![CDATA[<p>i must be wrong somehow &#8230; but, this is what I thought when i read your tip :: i deliver a web page, with an iframe in it with src of mail.google.com. i hide the iframe somewhere/how, and using the jquery code, read the content and post the interesting stuff back to my original server &#8230; (?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taras</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-243</link>
		<dc:creator>Taras</dc:creator>
		<pubDate>Wed, 17 Sep 2008 18:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-243</guid>
		<description>Rog, what you mean?</description>
		<content:encoded><![CDATA[<p>Rog, what you mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rog</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-241</link>
		<dc:creator>rog</dc:creator>
		<pubDate>Wed, 17 Sep 2008 17:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-241</guid>
		<description>... with this kind of thing, is'nt it possible to steal other peoples email, etc ... (?)</description>
		<content:encoded><![CDATA[<p>&#8230; with this kind of thing, is&#8217;nt it possible to steal other peoples email, etc &#8230; (?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taras</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-139</link>
		<dc:creator>Taras</dc:creator>
		<pubDate>Thu, 14 Aug 2008 10:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-139</guid>
		<description>You're welcome, jGeek! :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome, jGeek! <img src='http://simple.procoding.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jGeek</title>
		<link>http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-81</link>
		<dc:creator>jGeek</dc:creator>
		<pubDate>Fri, 11 Jul 2008 00:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/#comment-81</guid>
		<description>Thanks, this was a big help. Works for me!</description>
		<content:encoded><![CDATA[<p>Thanks, this was a big help. Works for me!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
