I have seen a lot of overly complex solutions for this simple problem and none of them have been valid solutions, here is a snippet that accomplishes it in an unambiguous manner. $(‘#el’).dialog({ open: function(e){ var self = this; $(‘.ui-widget-overlay’).bind(‘click’, function(){ $(self).dialog(‘close’); }); }, close: function(){ $(‘.ui-widget-overlay’).unbind(‘click’); } });
how to get my ex girlfriend back after 5 month of breaking up and songs to get your girlfriend back or how to get love from your ex boyfriend. how to get your boufriend back getting exboyfriend back after he went back to hus exgirlfriend, is jealousy a sign that ex boyfriend wants to get [...]
WordPress will generally inject jQuery into your front-end theme which in my opinion is a huge fail. Often times plugins will do it, fortunately there is a simple fix…
This morning I was seeking after a sweet bookmarklet to overlay a grid to the current website. Andy Budd had a pretty cool one but there was no way to turn it off, also the image was a little busy. So with the help of Jacob O’Neal for the images I created a modified version [...]
With Rails 3 Comes The End Of Obtrusive JavaScript (please!) Ruby on Rails 3 makes huge use of custom attributes using the data-* from the HTML 5 spec. This is a miniature class that will grab all anchor tags with “data-confirm”, pull that attributes value and stop the default event from firing till after they [...]
For a long time I was using Firefox just for Firebug. You know, sort of like when two people stay married for the kid. I was sick and tired of how Firefox rendering looked, hard to explain just not quite as smooth. When Chrome for Mac was released in the beta phases I was stoked… [...]
WTFramework Summary WTFramework is a dead simple, and well designed way to detect which framework a site is using as well as version. Being primarily a JavaScript developer I was always looking through the source to find which framework a certain site was using. Or to see if the developer had done something particularly cool [...]
This is a relatively simple concept and is nothing to elaborate but I wanted to share a small piece of code that will take every link with the class of “ajax” and access it using AJAX instead of actually going to that page. This using the same Request instance which will keep it optimized and [...]
In my attempt to use MooTools on new projects with other developers, share MooTools with other developers, or just releasing a MooTools class; I’ve come across the same complaints about this incredible framework. MooTools Complaints Poor Documentation While its true MooTools is poorly documented compared to other frameworks it is still worth learning and with [...]
Let it be known. This class doesn’t have a lot of options but it is fairly dynamic. If people actually use this class I will make it more customizable to the options and not just the class itself. While this is nothing special and there are plenty of great MooTools graphing systems out there I [...]