Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Plugins


3 years 22 weeks ago

This methode allows you to bind an object and sveral arguments to a function.

< < < < <
2 years 38 weeks ago

This plugin allows you to query elements for data that has been added using the $(elem).data() function. This works in a way similar to querying elements for attributes using the [attr] filters. You use it something like this:
$("#someElem:data('bar=foo')");
Just like [attr] it allows for more complex matching such as: != (does not equal), ^= (starts with), $= (ends with), *= (contains).
Since the $(elem).data() function also excepts objects you can query for object properties using:
$("#someElem:data('object.property.something^=bar')");
Read on...

< < < <
3 years 4 weeks ago

This plugin requires jQuery +1.3. that includes 1.3 beta releases (already out)

This tiny plugin provides a registry for different filter functions to sanitize ajax responses.

If you want to provide a new implementation, you need to do something like this:

jQuery.ajaxFilter.register( 'js_in_href', 'html', function( data ){
     return data.replace(/href="javascript:[^"]+"/g, '');
});

or

jQuery.ajaxFilter.register('eval', 'script html json', function( data ){
     return data.replace(/eval\(.+?\);?/g, '');
});

Arguments for jQuery.ajaxFilter.register() are:

  1. Name for the filter, used as 'filter' when calling jQuery.ajax.
  2. One or more dataTypes to handle. Can be any combination of ajax, html, json and xml separated by spaces.
  3. The filter function. Will receive 2 arguments: the data and the type. The 'this' will reference the settings object.

To use it, you do:

jQuery.ajax({

< < < < < <
2 years 11 weeks ago

Hi Dear,
Mohammad Ebrahim Amini Faravaghi
Thank You For Visit.
--Best Regards

< < < < < < < < < < < < < < < < < < < < <
1 year 51 weeks ago

Helps ease the pain when having to deal with IE z-index issues.

< <
2 years 39 weeks ago

This plugin requires jQuery +1.3.

This plugin silently adds the possibility to bind handlers to be called when certain jquery methods are called.

Suppose you want to do something each time an attribute changes on an element ($.fn.attr). You might even want to prevent that attribute from being set. All this can be done with this plugin.

The plugin, while usable, is still in development stage. Any feedback is appreciated.

< < < <
3 years 39 weeks ago

This plugin generates generic collection classes, that work almost exactly as jQuery does.
These collections include all those jQuery functions, that are used to manipulate the collection itself.

The included built-in functions are:

add, andSelf, attr, each, end, eq, extend, filter, get, implement, include, index, init, is, map, not, pushStack, setArray, size and slice.

Every collection will have a build() function, that will create a new collection class, that inherits from the caller. $.collection is a collection class by itself. So other collections will inherit from it, or its subclasses.

With this plugin, you can manipulate native data types like String or Array, with your custom methods, without actually modifying their prototype. This is shown in some of the examples below.

If you want additional information and more details about some of the methods.

< < < < <
1 year 37 weeks ago

jQuery defaultText plugin (works with jQuery 1.4+ ONLY)

Latest stable version:
http://github.com/weixiyen/jquery-defaultText

This plugin uses the .delegate() method of jQuery for performance reasons. I will consider switching to .live if everyone wants prior jquery version compatibility.

< < < < <
2 years 38 weeks ago

Extends jQuery´s built-in event delegation methods 'live' and 'die' to support mouseenter, mouseleave and change. It also implements focusin and focusout Events (by Jörn Zaefferer), wich can substitue the focus/blur Event and can be used with both the live or the bind method.

//hover with live
$('tr').liveHover(function(e){
console.log('enter')
},
function(e){
console.log('leave')
});
//mouseenter with live
$('tr').live('mouseenter', function(e){
console.log('enter')
});

//change with live
$('input').live('change', function(e){
console.log('changed')
});

Note: The change-Event used with the live-Method is also normalized. It will behave how the change-event in modern browser or how it is specified by the W3C HTML 5 working group. (no more click to notice a change on radiobuttons/checkboxes)

Note the extension also adds support for a kind of bubbling, if you use the bubbleLive-method:

< < < < < < < <
3 years 39 weeks ago

What is it

This small plugin includes a clean and simplified version of jQuery.trigger, that will perform better and will specially scale better.

How is this achieved

Many useless steps are skipped when programatically triggering an event, this step that jQuery does no matter what, are not really necessary for triggered events, and some of them hit on perfomance badly. Most of them are not optimized for speed and scalability, but for reusability and code size.

Differences with trigger

This method supports array of data (can include an event object), namespaced events and exclusive triggering. The only known difference with jQuery.trigger is that this method doesn't trigger native handlers, so it's actually comparable to .triggerHandler().

Perfomance

This is method is at least 4 times faster than the regular trigger, and will scale much better as you call it on more elements at once.

Global triggering

< < < < < < <
2 years 17 weeks ago

Problem (an instance)

Make some div 5 pixels taller, currently has to look something like this:

// get current value
var currentHeight = jQuery(this).parents('ul').find('div.something').height();

// update with slightly modified value
jQuery(this).parents('ul').find('div.something').height(currentHeight + 5);

This looks and feels gross, and only gets worse as your traversal chains get longer.

Functions as Values

jQuery(this).parents('ul').find('div.something').height(function(h) { return h+5; });

The anonymous function is evaluated and it's return value is used for that of the method. The current value of the method (as called as a getter) is sent in as the first argument of the anonymous function. In the case above "h" will be the current 'height' of '.div.something'

Methods that are given function value capability with this plugin:

<
3 years 19 weeks ago

$.plugin allows you to better manage the different plugins you use in your website or web application. This is especially useful if you use a number of plugins each with its own .js and .css files. It is even more useful if not all plugins are needed for each page.

Performance Improvements

  1. Users will only download scripts and styles that are required (accoding to selectors you specify)
  2. Page Caching: Scripts and styles are only downloaded once
  3. Session Caching: Scripts and styles are stored in browser's sessionStorage to reduce http requests (Firefox only for now)

$.plugin itself is just 10KB uncompressed (4KB minified; 3KB compressed)

< < < < < <
1 week 4 days ago

Freestyle Grid

This plug-in lets you create a grid using either tables or divs & spans. I originally developed it to work with CouchDB but it will work with any JSON source.

The JQuery plug-in lets you map a CouchDb view to a html grid. That's it. I looked at the other JQuery grid plug-ins - many of which are really great - but I couldn't get them working and since I'm lazy. So here are its features:

* HTML agnostic you can use tables or divs or any HTML to layout your data.
* View JSON data from any source - such as CouchDB.
* Column sorting.
* Paging
* Compatible with JEditable. So you can edit your data creating new versions or in place.
* Really small - Currently under 3K.
* Coded in a clean fashion so you can subclass header/body or footer generation and the loading and saving of data.

User Guide: http://69.164.211.38/power/_design/reports/index.html
Download from: http://69.164.211.38/power/_design/reports/jquery.gridiron.js

< < < < < < < < < < <
2 years 29 weeks ago

This is a smart plugin for print from json string to user friendly print page

< < < < < < < < < < < < < < < < < < < < <
2 years 8 weeks ago

Used to override standard settings, for a plugin.

$.fn.YourPlugin = function(options) {
        return this.each(function(i) {
            var defaults = {
            setting1 : 'value1'       
            }
            var inlineSet;
            inlineSet = $(this).inlineOptions();
            var curSettings = $.extend(defaults, options, inlineSet);
         }
}

In html

<div id="TransformToSomePlugin" settings="value1:'NewValue'">
   Some text
</div>

The reason i developed this simple little plugin was to ease the use in asp .net and the use of masterpages.
In my masterpage I have the initialiazion of my plugins, but I may/may not need to set some local paremeters for the plugin.

< < <
3 years 4 weeks ago

Lazily load javascript and other files whenever you want easily. You can also increase page load by using this plugin to load all of your other scripts after page load! The method returns the html object, allowing you to manipulate it. For example, you can use the onload() method provided with jQuery to add a callback function for once the script finally loads. It's as easy as:

$.insert('my_script.js');

More documentation on my site. Extremely extensible and easy to use.

< < < < < < < < < < <
1 year 42 weeks ago

jQuery CSS Drop Down Menu - PalmPre Style

CSS UL/LI Drop Down Menu with LavaLamp effect and Palm Pre Look-n-feel.

See the demo:
Palm Pre jQuery CSS Drop Down Menu

< < < < < < < < < <
2 years 22 weeks ago

jQuery Image Overlay Plugin

An Image Overlay plugin for the jQuery JavaScript library. Allows you to display additional information in a translucent pane above an image that gracefully appears when a user hovers over the image. Support for the metadata plugin is included. Brought to you by Jon Neal of ferretarmy.com.

< < < < < <
1 year 20 weeks ago

jQuery Multiple Select Box Plugin

Replace browser's default multiple select box with overflow: auto.

Select Automatically when dragging and scrolling.

取代瀏覽器預設的多選框組件,並加入自動選取功能。

Tested with: Chrome 2+, Firefox 2+, IE 6+, Opera 10+, Safari 4+

Original:

<select multiple="multiple">
    <option>Item 1</option>
    <option class="selected">Item 2</option>
    <option><font color="red">Style Item 3</font></option>
    <option style="margin-left: 20px">Style Item 4</option>
    <option>Style It<br />em 5</option>
</select>

Demo: http://dl.dropbox.com/u/8316573/index.html

< < < < < < < <
1 year 48 weeks ago

jQuery throttle / debounce allows you to rate-limit your functions in multiple useful ways. Passing a delay and callback to $.throttle returns a new function that will execute no more than once every delay milliseconds. Passing a delay and callback to $.debounce returns a new function that will execute only once, coalescing multiple sequential calls into a single execution at either the very beginning or end.

Full documentation, source, and examples are available on benalman.com.

< < < < < < <
1 year 48 weeks ago

jQuery urlInternal allows you to easily test internal-, external-, or fragment-ness for any relative or absolute URL. Includes element filtering methods and pseudo-selectors.

< < < < < <
1 year 45 weeks ago

Simplified jQuery dependency manager. Concurrent pre-downloading, can load CSS files, simple to setup, execution (and CSS-insertion) orders are preserved.

Very new right now, but is solid and works. I am using this on a live production site so expected more optimization and enhancements to come in the following months.

<
2 years 39 weeks ago

Claypool

Claypool is a small, fast, railable application framework, built on jQuery that provides all the usual important patterns for large, long-lived client-side apps, server-side apps, or something strangely, beautifully in the middle.

Features:

  • Small, 14K gzipped.
  • MIT/GPL Style License.
  • Scales memory effeciency.
  • Powered by jQuery.
< < < < < < <
2 years 25 weeks ago

This page will be able to demonstrate JQuery functionality and coding methodology.
this will be help full while developing AJAX enabled applications through Javascript.

< < < < < < < < < < < < < < < < < < < < <
1 year 47 weeks ago

Just share (jshare) a javascript, jquery script that allows you to add a sticky button on your page to share your webpage or you can just link to the share box.

< < < < < <
2 years 33 weeks ago

This plugin is capable of extracting metadata from classes, random attributes, child elements and HTML5 data-* attributes.

For example, you can do:

<li class="someclass {some: 'data'} anotherclass">...</li>
OR
<li data="{some:'random', json: 'data'}">...</li>
OR
<li><script type="data">{some:"json",data:true}</script> ...</li>
OR
<li data-some="'random'" data-json="'data'">...</li>

The default is the first method, but you can always change it by twiddling the options. This means that there is at least one option here that can appease you.

After that you can simply do:

var data = $('li.someclass').metadata();
if ( data.some && data.some == 'data' )
    alert('It Worked!');

There's also a bunch of options (like the ability to ignore braces {}).

For full documentation see http://docs.jquery.com/Plugins/Metadata.

< < <
3 years 43 weeks ago

This small plugin(673 bytes!) enables you to have modular methods on jQuery.
It allows the developer to apply the module pattern, to the functions of jQuery.fn.
They can be used as namespace/module for more functions.
This helps keeping the rule of only claiming one name from the jQuery namespace.

It enables you to do something like:

$(...).foo().bar( ... ).addClass('magic');

Visit the plugin's homepage, in order to learn more about it.

< < < < <
3 years 39 weeks ago

You can use this plug-in for using input text as multiple select facility. When you focus input text, appear a dialog box like combo box. After choose you want, it will update input area your options seperated with comma. Use & pray. Just use it with pray for me.

< < < < < <
2 years 22 weeks ago

Ever need to know what the new line character is on the client side? Have you, like I have, tried to find the perfect way to add a new line in a PRE tag, so that it did not add a leading or trailing space? Have you tried to figure out what new line character is being used in a textarea for those new lines? Finally you can easily figure it out. Thanks to the new $.support object, it can be tested once an never worried about again. This extension, when included, will automatically extend the $.support object with the appropriate tests results for the client browser. Then later in your application you can test against those results to find the proper new line character for the OS browser combo for the client.

Usage:

$(function() {
var EOL = false;
if ($.support.rnNewLine)
EOL = "\r\n";
else if ($.support.rNewLine)
EOL = "\r";
else if ($.support.nNewLine)
EOL = "\n";
else

< < < < < < < < < <
2 years 2 weeks ago

Orange offers

  • a light weight but powerful html snippet engine
    Write a snippet of plain html, throw a javascript object at it and watch the magic...
    $("#someID").snippet("snippet_name", someObject);
  • keystroke listener
    For highly customizable form (or any other element!) behavior including allowed characters, input validation, function calls on keystrokes, timeouts for delayed event firing.
    $("#someID").listen({13:function(){alert('yummy!'); submitCode();}})
  • create a javascript object from form data by passing in an array of element ids.
  • push json data to a form by passing fillForm an object and an id prefix
< < < < < <