<?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: Thickbox form processing</title>
	<atom:link href="http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/</link>
	<description>A general mix of everything</description>
	<lastBuildDate>Mon, 26 Sep 2011 11:28:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Php tutorials</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-10312</link>
		<dc:creator>Php tutorials</dc:creator>
		<pubDate>Tue, 26 Oct 2010 06:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-10312</guid>
		<description>Dude..I love you Dude..</description>
		<content:encoded><![CDATA[<p>Dude..I love you Dude..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jogesh</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-7483</link>
		<dc:creator>jogesh</dc:creator>
		<pubDate>Wed, 25 Aug 2010 12:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-7483</guid>
		<description>hey all,

i also tried the same code using login form, but i have a problem.
i want auto close the thickbox after submiting complete data,,

pls help me &gt;&gt;</description>
		<content:encoded><![CDATA[<p>hey all,</p>
<p>i also tried the same code using login form, but i have a problem.<br />
i want auto close the thickbox after submiting complete data,,</p>
<p>pls help me &gt;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shiva</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-6344</link>
		<dc:creator>shiva</dc:creator>
		<pubDate>Thu, 22 Jul 2010 07:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-6344</guid>
		<description>Thanks A Lot.....Very helpful</description>
		<content:encoded><![CDATA[<p>Thanks A Lot&#8230;..Very helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gurgle</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-4670</link>
		<dc:creator>gurgle</dc:creator>
		<pubDate>Wed, 05 May 2010 09:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-4670</guid>
		<description>Hi, this is an excellent article, I have get many clues from this article. But when I useing thickbox 3.1 in my site, one question appeared.

I&#039;m using Thickbox 3.1 to show signup form. The form content comes from jquery ajax post. The jquery lib is of version 1.4.2.

   I placed a &quot;signup&quot; link into a div area, which is a part of my other large pages, and the whole content of that div area is ajax+posted from my server. 

   To make thickbox can work in my above arangement, I have modified the thickbox code a little like that:


    //add thickbox to href &amp; area elements that have a class of .thickbox
     function tb_init(domChunk){
	$(domChunk).live(&#039;click&#039;, function(){
	var t = this.title &#124;&#124; this.name &#124;&#124; null;
	var a = this.href &#124;&#124; this.alt;
	var g = this.rel &#124;&#124; false;
	tb_show(t,a,g);
	this.blur();
	return false;
	});}


This modification is the only change against the original version. Beacause the &quot;signup&quot; link is placed in ajaxed content, so I Use live instead of binding the click event directly.

When I tested on my pc, the thickbox works well. I can see the signup form quickly, without feeling the content of the parent page(here, is the other large pages) get refreshed. 

But after transmiting my site files into VHost, when I click the &quot;signup&quot; link, the signup form get presented very slowly. The large pages get refreshed evidently, because the borwser(ie6) are reloading images from server incessantly. These images are set as background images in CSS files.

I think that&#039;s because the slow connection of network. But why the parent pages get refreshed? and why the browser reloads those images one more time? Havn&#039;t those images been placed in local computer&#039;s disk?

Is there one way to stop that reloadding? Because the signup form can&#039;t get displayed sometimes due to slow connection of network. 

To verified the question, you can access http://www.juliantec.info/track-the-source.html and click the second link in left grey area, that is the &quot;signup&quot; link mentioned above. Thinks!</description>
		<content:encoded><![CDATA[<p>Hi, this is an excellent article, I have get many clues from this article. But when I useing thickbox 3.1 in my site, one question appeared.</p>
<p>I&#8217;m using Thickbox 3.1 to show signup form. The form content comes from jquery ajax post. The jquery lib is of version 1.4.2.</p>
<p>   I placed a &#8220;signup&#8221; link into a div area, which is a part of my other large pages, and the whole content of that div area is ajax+posted from my server. </p>
<p>   To make thickbox can work in my above arangement, I have modified the thickbox code a little like that:</p>
<p>    //add thickbox to href &amp; area elements that have a class of .thickbox<br />
     function tb_init(domChunk){<br />
	$(domChunk).live(&#8216;click&#8217;, function(){<br />
	var t = this.title || this.name || null;<br />
	var a = this.href || this.alt;<br />
	var g = this.rel || false;<br />
	tb_show(t,a,g);<br />
	this.blur();<br />
	return false;<br />
	});}</p>
<p>This modification is the only change against the original version. Beacause the &#8220;signup&#8221; link is placed in ajaxed content, so I Use live instead of binding the click event directly.</p>
<p>When I tested on my pc, the thickbox works well. I can see the signup form quickly, without feeling the content of the parent page(here, is the other large pages) get refreshed. </p>
<p>But after transmiting my site files into VHost, when I click the &#8220;signup&#8221; link, the signup form get presented very slowly. The large pages get refreshed evidently, because the borwser(ie6) are reloading images from server incessantly. These images are set as background images in CSS files.</p>
<p>I think that&#8217;s because the slow connection of network. But why the parent pages get refreshed? and why the browser reloads those images one more time? Havn&#8217;t those images been placed in local computer&#8217;s disk?</p>
<p>Is there one way to stop that reloadding? Because the signup form can&#8217;t get displayed sometimes due to slow connection of network. </p>
<p>To verified the question, you can access <a href="http://www.juliantec.info/track-the-source.html" rel="nofollow">http://www.juliantec.info/track-the-source.html</a> and click the second link in left grey area, that is the &#8220;signup&#8221; link mentioned above. Thinks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashi</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-4570</link>
		<dc:creator>Shashi</dc:creator>
		<pubDate>Thu, 29 Apr 2010 04:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-4570</guid>
		<description>Thanks for this beautiful post... works great !
Ofcourse i had to customise it to a large extent</description>
		<content:encoded><![CDATA[<p>Thanks for this beautiful post&#8230; works great !<br />
Ofcourse i had to customise it to a large extent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-2105</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Sun, 04 Oct 2009 00:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-2105</guid>
		<description>perhaps a header redirect from the lightbox, back to the cms may solve it?

it would force a refresh, and will create a logged in state provided you have set the session</description>
		<content:encoded><![CDATA[<p>perhaps a header redirect from the lightbox, back to the cms may solve it?</p>
<p>it would force a refresh, and will create a logged in state provided you have set the session</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-2102</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sun, 04 Oct 2009 00:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-2102</guid>
		<description>Hi Adrian - that&#039;s exactly the flow I need - I just don&#039;t know enough about JS to achieve #4...
I&#039;ll try again today.  Thanks for your quick response!
Jeff</description>
		<content:encoded><![CDATA[<p>Hi Adrian &#8211; that&#8217;s exactly the flow I need &#8211; I just don&#8217;t know enough about JS to achieve #4&#8230;<br />
I&#8217;ll try again today.  Thanks for your quick response!<br />
Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-2100</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Sat, 03 Oct 2009 18:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-2100</guid>
		<description>Hi Jeff, 

Glad you find it usefull, it will depend on what sort of CMS you are using, but the traditional data flow is after submission,

1. clense the data (to stop sql injection etc)
2. check the validity of the values from the array against a database of users and there passwords etc
3. display an error message if they are not found, or set a session of logged in if they are
4. close the box, and force a page reload causing the cms to recognise the sesssion.
5. the cms would detect the logged in state, allowing access to sensitive area`s of the site

I hope that helps

Adrian</description>
		<content:encoded><![CDATA[<p>Hi Jeff, </p>
<p>Glad you find it usefull, it will depend on what sort of CMS you are using, but the traditional data flow is after submission,</p>
<p>1. clense the data (to stop sql injection etc)<br />
2. check the validity of the values from the array against a database of users and there passwords etc<br />
3. display an error message if they are not found, or set a session of logged in if they are<br />
4. close the box, and force a page reload causing the cms to recognise the sesssion.<br />
5. the cms would detect the logged in state, allowing access to sensitive area`s of the site</p>
<p>I hope that helps</p>
<p>Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-2090</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sat, 03 Oct 2009 06:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-2090</guid>
		<description>hi - thanks for this - I can get the popup working, see the posted values, etc.  My question is what to do when the login details are correct - I need to close this box and reload the web page so the user get&#039;s a logged in environment?

thanks
Jeff</description>
		<content:encoded><![CDATA[<p>hi &#8211; thanks for this &#8211; I can get the popup working, see the posted values, etc.  My question is what to do when the login details are correct &#8211; I need to close this box and reload the web page so the user get&#8217;s a logged in environment?</p>
<p>thanks<br />
Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glepiza</title>
		<link>http://adriancallaghan.co.uk/processing-forms-within-a-thickbox/comment-page-1/#comment-1160</link>
		<dc:creator>glepiza</dc:creator>
		<pubDate>Wed, 29 Jul 2009 21:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://adriancallaghan.co.uk/?p=181#comment-1160</guid>
		<description>Great tutorial, thank you very much!!!!</description>
		<content:encoded><![CDATA[<p>Great tutorial, thank you very much!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

