Update Your yui3-gallery Git Fork

Posted by & filed under Javascript/YUI/jQuery, Web Development.

Unless you are a pretty experienced Git user, updating your yui3-gallery fork for a new Yahoo CDN pull request can be tricky. Here is one way you can do this, the following steps assume that you have defined the official yui3-gallery Git repository as a remote source in your repository entitled “upstream”…

Using the Return Key to Submit a Form

Posted by & filed under Javascript/YUI/jQuery.

Using Prototype we can capture the return key (and other key presses) to replace the usual form submission with our own Javascript functions. This is useful for invoking some Javascript-based error checking on the form prior to submission when the user presses their return key, or invoke a search triggered by the return key. Code samples included.