<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Modal window &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/modal-window/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>clickoutside jQuery plugin</title>
		<link>/2010/02/17/clickoutside-jquery-plugin/</link>
		<comments>/2010/02/17/clickoutside-jquery-plugin/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 15:00:14 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Feedback]]></category>
		<category><![CDATA[Graphical user interface]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Modal window]]></category>
		<category><![CDATA[System software]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Windows games]]></category>

		<guid isPermaLink="false">/?p=1116</guid>
		<description><![CDATA[I wrote a small plugin to jQuery that adds the event of clicking outside an element. You know sometimes you should close some modal windows when clicking outside. It&#8217;s really simple and small. Please provide any feedback that will improve it. (function(jQuery) { jQuery.fn.clickoutside = function(callback) { var outside = 1, self = $(this); self.cb &#8230; <a href="/2010/02/17/clickoutside-jquery-plugin/" class="more-link">Continue reading <span class="screen-reader-text">clickoutside jQuery plugin</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/10/22/event-driven-programming-with-jquery-part-3-what-is-a-module/" rel="bookmark" title="Event driven programming with jQuery &#8211; (part 3). What is a module?">Event driven programming with jQuery &#8211; (part 3). What is a module? </a></li>
<li><a href="/2010/02/16/jquery-tooltip-plugin/" rel="bookmark" title="jQuery tooltip plugin!">jQuery tooltip plugin! </a></li>
<li><a href="/2009/07/29/cancel-bubbling-on-element-click-with-jquery/" rel="bookmark" title="cancel bubbling on element click with jQuery">cancel bubbling on element click with jQuery </a></li>
<li><a href="/2010/02/25/jquery-localstorage-plugin/" rel="bookmark" title="jQuery localStorage plugin">jQuery localStorage plugin </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>I wrote a small plugin to jQuery that adds the event of clicking outside an element. You know sometimes you should close some modal windows when clicking outside. It&#8217;s really simple and small. Please provide any feedback that will improve it.</p>
<pre lang="javascript" line="1" escaped="true">(function(jQuery) {
   jQuery.fn.clickoutside = function(callback) {
      var outside = 1, self = $(this);
      self.cb = callback;
      this.click(function() {
         outside = 0;
      });
      $(document).click(function() {
         outside &amp;&amp; self.cb();
         outside = 1;
      });
      return $(this);
   }
})(jQuery);
</pre>
<p>You can see the demo page <a title="jquery tooltip clickoutside" href="http://www.stoimen.com/jquery.clickoutside.plugin/" target="_blank">here</a>. To install it just include the chunk above after the jQuery library code.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/10/22/event-driven-programming-with-jquery-part-3-what-is-a-module/" rel="bookmark" title="Event driven programming with jQuery &#8211; (part 3). What is a module?">Event driven programming with jQuery &#8211; (part 3). What is a module? </a></li>
<li><a href="/2010/02/16/jquery-tooltip-plugin/" rel="bookmark" title="jQuery tooltip plugin!">jQuery tooltip plugin! </a></li>
<li><a href="/2009/07/29/cancel-bubbling-on-element-click-with-jquery/" rel="bookmark" title="cancel bubbling on element click with jQuery">cancel bubbling on element click with jQuery </a></li>
<li><a href="/2010/02/25/jquery-localstorage-plugin/" rel="bookmark" title="jQuery localStorage plugin">jQuery localStorage plugin </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/02/17/clickoutside-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
