<?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: jQuery: Thickbox Hack to refresh parent window on tb_close() event</title>
	<atom:link href="http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/feed" rel="self" type="application/rss+xml" />
	<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html</link>
	<description></description>
	<lastBuildDate>Tue, 20 Dec 2011 14:26:17 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: andrea</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-6616</link>
		<dc:creator>andrea</dc:creator>
		<pubDate>Tue, 20 Dec 2011 14:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-6616</guid>
		<description>grazie</description>
		<content:encoded><![CDATA[<p>grazie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibrahim</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-4647</link>
		<dc:creator>ibrahim</dc:creator>
		<pubDate>Fri, 14 Oct 2011 08:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-4647</guid>
		<description>I am from Turkey. I not know english. But The paradise of God you. 
for Turkish
Teşekkür ederim Dostum Allah seni cennetine alsın bu refresh işi çok işime yaradı.

Very thanks :)</description>
		<content:encoded><![CDATA[<p>I am from Turkey. I not know english. But The paradise of God you.<br />
for Turkish<br />
Teşekkür ederim Dostum Allah seni cennetine alsın bu refresh işi çok işime yaradı.</p>
<p>Very thanks <img src='http://designerfoo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: [jQuery] 將 thickbox 的 tb_remove() 更改為關閉時自動重整母視窗 &#124; 勇往直前！挨踢星人</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-4467</link>
		<dc:creator>[jQuery] 將 thickbox 的 tb_remove() 更改為關閉時自動重整母視窗 &#124; 勇往直前！挨踢星人</dc:creator>
		<pubDate>Sat, 01 Oct 2011 19:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-4467</guid>
		<description>[...] via jQuery: Thickbox Hack to refresh parent window on tb_close() event [...]</description>
		<content:encoded><![CDATA[<p>[...] via jQuery: Thickbox Hack to refresh parent window on tb_close() event [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Designerfoo</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-3789</link>
		<dc:creator>Designerfoo</dc:creator>
		<pubDate>Wed, 03 Aug 2011 06:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-3789</guid>
		<description>Hey Rebecca,

Try validating the form first and capturing the boolean value in a var, only when the var is true then go ahead and window.parent.tb_remove(true); you can also mail me the code I can help with it :) 

for e.g.
if(var)
{
  //validation failed show error messages
}
else
{
 //use jquery &quot;live&quot; binding or equivalent to bind/add
  window.parent.tb_remove(true);
}

hope this makes sense?</description>
		<content:encoded><![CDATA[<p>Hey Rebecca,</p>
<p>Try validating the form first and capturing the boolean value in a var, only when the var is true then go ahead and window.parent.tb_remove(true); you can also mail me the code I can help with it <img src='http://designerfoo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>for e.g.<br />
if(var)<br />
{<br />
  //validation failed show error messages<br />
}<br />
else<br />
{<br />
 //use jquery &#8220;live&#8221; binding or equivalent to bind/add<br />
  window.parent.tb_remove(true);<br />
}</p>
<p>hope this makes sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rebecca</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-3786</link>
		<dc:creator>Rebecca</dc:creator>
		<pubDate>Wed, 03 Aug 2011 02:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-3786</guid>
		<description>I have used the thickbox with a form in it and have got everything working. The only problem is the new onlclick=&quot;window.parent.tb_remove(true);&quot; completely bypasses the for validation and just refreshes. is there a way to have the thingo check to see if validation is true then refresh if not let the error message appear.

Not up on the javascript lingo so please be gentle with me.

Ta, Rebecca</description>
		<content:encoded><![CDATA[<p>I have used the thickbox with a form in it and have got everything working. The only problem is the new onlclick=&#8221;window.parent.tb_remove(true);&#8221; completely bypasses the for validation and just refreshes. is there a way to have the thingo check to see if validation is true then refresh if not let the error message appear.</p>
<p>Not up on the javascript lingo so please be gentle with me.</p>
<p>Ta, Rebecca</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ejay56</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-3307</link>
		<dc:creator>ejay56</dc:creator>
		<pubDate>Tue, 28 Jun 2011 06:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-3307</guid>
		<description>for those who are using lightwindow.js - you may have been loosing all over for the modification required to make the parent window refresh on close. 

if ($(&#039;lightwindow_title_bar_close_link&#039;)) {				Event.observe(&#039;lightwindow_title_bar_close_link&#039;, &#039;click&#039;, this.deactivate.bindAsEventListener(this));			$(&#039;lightwindow_title_bar_close_link&#039;).onclick = 
			function() 
			{   parent.location.reload(1);
				return false;
				};
		}</description>
		<content:encoded><![CDATA[<p>for those who are using lightwindow.js &#8211; you may have been loosing all over for the modification required to make the parent window refresh on close. </p>
<p>if ($(&#8217;lightwindow_title_bar_close_link&#8217;)) {				Event.observe(&#8217;lightwindow_title_bar_close_link&#8217;, &#8216;click&#8217;, this.deactivate.bindAsEventListener(this));			$(&#8217;lightwindow_title_bar_close_link&#8217;).onclick =<br />
			function()<br />
			{   parent.location.reload(1);<br />
				return false;<br />
				};<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ira</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-2918</link>
		<dc:creator>ira</dc:creator>
		<pubDate>Thu, 05 May 2011 04:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-2918</guid>
		<description>nice.. thanks for the script.. its really save my time (^_^)</description>
		<content:encoded><![CDATA[<p>nice.. thanks for the script.. its really save my time (^_^)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jagan</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-2860</link>
		<dc:creator>Jagan</dc:creator>
		<pubDate>Wed, 27 Apr 2011 14:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-2860</guid>
		<description>This works like charm!!!

Thanks for sharing... :)</description>
		<content:encoded><![CDATA[<p>This works like charm!!!</p>
<p>Thanks for sharing&#8230; <img src='http://designerfoo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcin</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-2484</link>
		<dc:creator>marcin</dc:creator>
		<pubDate>Tue, 22 Mar 2011 16:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-2484</guid>
		<description>Thanks mate, that worked like a charm!!</description>
		<content:encoded><![CDATA[<p>Thanks mate, that worked like a charm!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html/comment-page-1#comment-1873</link>
		<dc:creator>jj</dc:creator>
		<pubDate>Thu, 20 Jan 2011 14:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://designerfoo.com/?p=394#comment-1873</guid>
		<description>In my case, I need to refresh by default, without modifying every instance calling the original function, but regarding the opposite as well via parameter. So I&#039;ve implemented:

function tb_remove(refreshparentwindow) {
if(refreshparentwindow==null) refreshparentwindow=true;
//this works in the case of missing parameter
if(refreshparentwindow) parent.location.reload(1);
....</description>
		<content:encoded><![CDATA[<p>In my case, I need to refresh by default, without modifying every instance calling the original function, but regarding the opposite as well via parameter. So I&#8217;ve implemented:</p>
<p>function tb_remove(refreshparentwindow) {<br />
if(refreshparentwindow==null) refreshparentwindow=true;<br />
//this works in the case of missing parameter<br />
if(refreshparentwindow) parent.location.reload(1);<br />
&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

