<?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: How to close a jQuery dialog box by clicking outside of it</title>
	<atom:link href="http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/</link>
	<description>User interface designer</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:49:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Luis Martin</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-48</link>
		<dc:creator>Luis Martin</dc:creator>
		<pubDate>Thu, 19 Jan 2012 20:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-48</guid>
		<description>This is good if you want to simulate a modal dialog box, but what if I want to keep everything else visible? I guess I could use a transparent overlay, but is there any better and more programmatic solution? Figure this case: There is a button which displays a drop-down dialog with several checkboxes, and I want to allow the user to close it if I click anywhere except for the drop-down dialog box.</description>
		<content:encoded><![CDATA[<p>This is good if you want to simulate a modal dialog box, but what if I want to keep everything else visible? I guess I could use a transparent overlay, but is there any better and more programmatic solution? Figure this case: There is a button which displays a drop-down dialog with several checkboxes, and I want to allow the user to close it if I click anywhere except for the drop-down dialog box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balaji</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-34</link>
		<dc:creator>Balaji</dc:creator>
		<pubDate>Thu, 09 Jun 2011 12:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-34</guid>
		<description>This solution worked for me, thanks.</description>
		<content:encoded><![CDATA[<p>This solution worked for me, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balaji</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-43</link>
		<dc:creator>Balaji</dc:creator>
		<pubDate>Thu, 09 Jun 2011 12:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-43</guid>
		<description>This solution worked for me, thanks. </description>
		<content:encoded><![CDATA[<p>This solution worked for me, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Matz</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-33</link>
		<dc:creator>Josh Matz</dc:creator>
		<pubDate>Mon, 14 Mar 2011 17:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-33</guid>
		<description>Thanks, this worked for me after trying a few other methods (and debating about installing an outside plugin)!</description>
		<content:encoded><![CDATA[<p>Thanks, this worked for me after trying a few other methods (and debating about installing an outside plugin)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Matz</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-39</link>
		<dc:creator>Josh Matz</dc:creator>
		<pubDate>Mon, 14 Mar 2011 17:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-39</guid>
		<description>Thanks, this worked for me after trying a few other methods (and debating about installing an outside plugin)!</description>
		<content:encoded><![CDATA[<p>Thanks, this worked for me after trying a few other methods (and debating about installing an outside plugin)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-32</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Wed, 06 Jan 2010 20:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-32</guid>
		<description>I can&#039;t leave the html portion.  I tried to send it to you on twitter, but don&#039;t know if it went since you don&#039;t follow me.  Anyway, it is a link with the id of dialog.

Thanks for the jquery; it saved me figuring it out.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t leave the html portion.  I tried to send it to you on twitter, but don&#8217;t know if it went since you don&#8217;t follow me.  Anyway, it is a link with the id of dialog.</p>
<p>Thanks for the jquery; it saved me figuring it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-31</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 06 Jan 2010 19:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-31</guid>
		<description>Hi Marty, thanks for the example. I&#039;ll see if I can something up too when I have a chance.</description>
		<content:encoded><![CDATA[<p>Hi Marty, thanks for the example. I&#8217;ll see if I can something up too when I have a chance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-30</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Wed, 06 Jan 2010 19:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-30</guid>
		<description>Perhaps this will work as an example:

jQuery portion:
&lt;code&gt;

			$(function(){
				// Dialog
				$(&#039;#dialog&#039;).dialog({
					autoOpen: false,
					width: 600,
					modal: true, //there is no overlay (.ui-widget-overlay) if modal is false or not set.
					buttons: {
						&quot;Close&quot;: function() {
							$(this).dialog(&quot;close&quot;);
						}
					}
				});

				//closes the dialog window if the user clicks outside of the window.
				$(&quot;.ui-widget-overlay&quot;).live(&quot;click&quot;, function() {  $(&quot;#dialog&quot;).dialog(&quot;close&quot;); } );

				// Link to open the dialog box
				$(&#039;#dialog_link&#039;).click(function(){
					$(&#039;#dialog&#039;).dialog(&#039;open&#039;);
					return false;
				});
			});

&lt;/code&gt;

HTML portion:
&lt;code&gt;
&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Open Dialog&lt;/a&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Perhaps this will work as an example:</p>
<p>jQuery portion:<br />
<code></p>
<p>			$(function(){<br />
				// Dialog<br />
				$('#dialog').dialog({<br />
					autoOpen: false,<br />
					width: 600,<br />
					modal: true, //there is no overlay (.ui-widget-overlay) if modal is false or not set.<br />
					buttons: {<br />
						"Close": function() {<br />
							$(this).dialog("close");<br />
						}<br />
					}<br />
				});</p>
<p>				//closes the dialog window if the user clicks outside of the window.<br />
				$(".ui-widget-overlay").live("click", function() {  $("#dialog").dialog("close"); } );</p>
<p>				// Link to open the dialog box<br />
				$('#dialog_link').click(function(){<br />
					$('#dialog').dialog('open');<br />
					return false;<br />
				});<br />
			});</p>
<p></code></p>
<p>HTML portion:<br />
<code><br />
<a href="#" rel="nofollow">Open Dialog</a><br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://www.littled.net/2009/11/30/how-to-close-a-jquery-dialog-box-by-clicking-outside-of-it/#comment-29</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Wed, 06 Jan 2010 19:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.littled.net/new/?p=392#comment-29</guid>
		<description>If you could show an example with html and all, it would be awesome.</description>
		<content:encoded><![CDATA[<p>If you could show an example with html and all, it would be awesome.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

