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 [...]
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 [...]
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 [...]
This is a concept based on the idea that maybe you want a link to go to more then one place. Multiple links if you will. For Example: A company has a page full of images of employees that work for them with links to their Facebook accounts or personal websites. What if I’m not [...]
While this is a very basic piece of code it adds a very nice effect to any item you choose. The MooTools Fader Class will fade any item to a specified opacity and fade it back to a specified opacity.
This is a small piece of code that is mostly the brain child of the incredible David Walsh. His version is written in MooTools and you can see it here. There are a few differences however, I removed some of the basic form validation, I set up a Gravatar function to be called onBlur rather [...]
So I’ve been wanting to write a class like this for a while now and I finally got around to it. It creates a content slider. That being said a content slider could be a number of things these days but, this particular one creates a slider that manipulates the position of the content in [...]