background preloader

Events

Events
Attach a handler to an event for the elements. Bind an event handler to the “blur” JavaScript event, or trigger that event on an element. Bind an event handler to the “change” JavaScript event, or trigger that event on an element. Bind an event handler to the “click” JavaScript event, or trigger that event on an element. Bind an event handler to the “dblclick” JavaScript event, or trigger that event on an element. Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. Remove event handlers previously attached using .live() from the elements. Bind an event handler to the “error” JavaScript event. The current DOM element within the event bubbling phase. An optional object of data passed to an event method when the current executing handler is bound. The element where the currently-called jQuery event handler was attached. Returns whether event.preventDefault() was ever called on this event object.

JQuery Cycle Plugin Check out Cycle2, the latest in the Cycle line of slideshows. The jQuery Cycle Plugin is a slideshow plugin that supports many different types of transition effects. It supports pause-on-hover, auto-stop, auto-fit, before/after callbacks, click triggers and much more. It also supports, but does not require, the Easing Plugin. The plugin provides a method called cycle which is invoked on a container element. Each child element of the container becomes a "slide". Images are used in these demos because they look cool, but slideshows are not limited to images. Use the Effects Browser page to preview the available effects. For more about options, see the Options Reference page. Frequently Asked Questions Special thanks to Torsten Baldes, Matt Oakes, and Ben Sterling for the many ideas that got me started on writing Cycle in 2007.

Developer Network jQuery: The Write Less, Do More, JavaScript Library 55 jQuery Animate Resources | Have Fun With jQuery Animate Back in the day most people would use Flash on their website in order to enhance their website with stunning animation. Now, jQuery is a power house programming language that webmasters have at their disposal. Now slowly but steadily jQuery has stolen all the limelight from Flash and has fascinated the developers with its unmatchable features. jQuery is known as write less do more script. jQuery Animate in such a wonderful tool that you don’t even have to consider using flash anymore. We are presenting a whopping list of tutorials and plugins which will show you how you can create wonderful animations using jQuery. Advertisement Create a Cool Animated Navigation with CSS and jQuery Author is going to build a really cool animated navigation menu using just CSS and jQuery. More Information on Create a Cool Animated Navigation with CSS and jQuery Create a Realistic Hover Effect With jQuery Learn how to Create a Realistic Hover Effect With jQuery Bubble Engine – Plugin for jQuery Dream Night txt

The MobileESP Project: Easily detect mobile web site visitors » Download MobileESP The MobileESP project is easy to use, install, and customize. For the latest source code, please visit the Google Code site which hosts the main code repository: Source code is available for the following programming languages: PHPJava (server side)ASP.NET (C#)Python: Jury Gerasimov ported MobileESP to Python for the Django web app framework. Important Caveat: The MobileESP project code is lightweight and ideal for many web sites. We’ve prepared a few useful downloads which allow you to study how to apply the MobileESP code in action in real web pages. jQuery for JavaScript programmers When jQuery came out back in January 2006, my first impression was that it was a cute hack. Basing everything around CSS selectors was a neat idea (see getElementsBySelector) but the chaining stuff looked like a bit of a gimmick and the library as a whole didn't look like it would cover all of the bases. I wrote jQuery off as a passing fad. Over the past few months it's become clear to me exactly how wrong I was. jQuery is an exceptionally clever piece of engineering. It neatly encapsulates an extraordinary range of common functionality, and provides a clever plugin API for any functionality not included by default. It takes a core abstraction - that of a selection of DOM elements - and extracts as much mileage out of it as possible. Most introductions to jQuery focus on designers and inexperienced developers. Namespacing The key to writing good, reusable JavaScript is to zealously manage your namespace. What about language enhancements? The infamous $ function Selecting some elements

jQuery Zoom A plugin to enlarge images on touch, click, or mouseover. Demo Hover Grab Released under the MIT License, source on Github (changelog) Download Compatible with: jQuery 1.7+ in Chrome, Firefox, Safari, Opera, Internet Explorer 7+. Install via NPM npm install jquery-zoom Instructions Zoom appends html inside the element it is assigned to, so that element has to be able to accept html, like <a>, <span>, <li>, <div>, etc. To use zoom with img elements, they will need to be wrapped with another element. Removing Zoom Trigger the zoom.destroy event to remove zoom from an element: $('#example').zoom(); $('#example').trigger('zoom.destroy'); Settings Hey, 35 Useful jQuery Filter and Sort Plugins By using jQuery filter and jQuery sort plugins you will be able to have a great control over the order, placement and organization of your page / or table elements. Further some of these plugins include drag-able controls making it possible to offer a more dynamic and user friendly design. Sorting and filtering is very useful if you have large datasets such as table views, however you can also use them for managing list views e.g. for a portfolio page. The Quicksand plugin found below is an example of this. [exec]$filestr = file_get_contents(‘ echo $filestr;[/exec] SortTables Responsive – MORE INFO / DEMO SortTable is a mobile ready and fully responsive jQuery sort and filter plugin. jQuery Sort and Order Portfolio Plugin – MORE INFO / DEMO jQuery Sort and Order os a script for adding the popular sortable portfolio grids we see all over the internet. tQuery – Dynamic tables – MORE INFO / DEMO Beautiful Data – MORE INFO / DEMO

jQuery 1.1.2 API Browser Load a remote page using an HTTP request. This is jQuery's low-level AJAX implementation. See $.get, $.post etc. for higher-level abstractions that are often easier to understand and use, but don't offer as much functionality (such as error callbacks). $.ajax() returns the XMLHttpRequest that it creates. '''Note:''' If you specify the dataType option described below, make sure the server sends the correct MIME type in the response (eg. xml as "text/xml"). Supported datatypes are (see dataType option): "xml": Returns a XML document that can be processed via jQuery. "html": Returns HTML as plain text, included script tags are evaluated. "script": Evaluates the response as Javascript and returns it as plain text. "json": Evaluates the response as JSON and returns a Javascript Object $.ajax() takes one argument, an object of key/value pairs, that are used to initalize and handle the request. (String) url - The URL to request. (Function) error - A function to be called if the request fails.

Zoomooz.js Zoomooz is: 6KB gzipped and 18KB minified. This includes everything but jQuery. Make any web page zoom. Latest version: 1.1.9 (Nov 11, 2013, hacky fix for the back and forward buttons #66) Zoomooz is a jQuery plugin for making web page elements zoom. Quirky transformations You can zoom to elements that have been translated, scaled and skewed, and they will morph correctly. Try by clicking on these: Skew Scale Rotate There is some interesting stuff happening in the background to make the morphings work. Adding Zoomooz to your web page Just add this to your web page head and you should be up and running with Zoomooz: The easy way to zoom Simply add "zoomTarget" to the element you want to zoom to when clicked on: <div class="zoomTarget">This element zooms when clicked on. You can also add some additional attributes for tuning the animation as data fields of the element: <div class="zoomTarget" data-targetsize="0.45" data-duration="600">This element zooms when clicked on. Target 1 Target 2 Target 3 Target 4

Your Own URL Shortener About YOURLS What is YOURLS YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL or bitly). Running your own URL shortener is fun, geeky and useful: you own your data and don't depend on third party services. YOURLS Features Free and Open Source software. Screenshots Download Download YOURLS from Github You can follow YOURLS' development on the commit history and get current development build Credits YOURLS is made by: Lester Chan – @GamerZ on Twitter (initial idea) Ozh Richard – @Ozh on Twitter (development) Keep up to date: follow Ozh and read the official YOURLS Blog Fresh Install Upgrade Backup the database! Upgrade from YOURLS 1.3 or earlier Backup the database! Configuration (in user/config.php) MySQL settings Site options YOURLS_SITE Your (short) domain URL, no trailing slash, lowercase. URL Shortening settings YOURLS_URL_CONVERT URL shortening method: base 36 or 62. Optional settings Advanced settings

Related: