The livequery plugin allows us to bind events and general logic to all current and future elements. After the inclusion of live() in 1.3, an expansion of supported live event types in 1.4, and the introduction of delegate() in 1.4.2, the livequery plugin has more or less become deprecated. However, it still holds a special place in my heart because of it’s ability to listen for the creation of new
jQuery Text Change Event Simple cross browser detection of text changes for input and textarea elements using a jQuery custom event plugin by ZURB. See the blog post to view or add a comment » Plugin Tested in FireFox (3, 3.5, 3.5, Win/OS X), Safari 4, Chrome 5, IE (6, 7, 8) Real Time Validation It's a common problem, you have a text form that you need to validate client side. It's easy enough to
jQuery outside events: Why trigger an event on something, when you can trigger it on everything else? With jQuery outside events you can bind to an event that will be triggered only when a specific “originating” event occurs outside the element in question. For example, you can click outside, double-click outside, mouse-over outside, focus outside (and over ten more default “outside” events). Also
This jQuery plugin enables very basic bookmarkable #hash history via a cross-browser HTML5 window.onhashchange event. While this functionality was initially tied to the jQuery BBQ plugin, the event.special window.onhashchange functionality has now been broken out into a separate plugin for users who want just the basic event & back button support, without all the extra awesomeness that BBQ provide
jQuery.Behavior helps you organize your JavaScript code into logical chunks called "behaviors". // 1. Create behavior: function BadBehavior(element, config) { this.misbehave = function () { alert('Oh behave!'); } } // 2. Attach behavior: $('.bad-behavior').behavior(BadBehavior); // 3. Use behavior: $('.bad-behavior').behavior('misbehave'); // alert('Oh behave!') You know those web applications tha
Try me! The keyboard shortcuts are: n m Space Space and v v t and y t and u $(document).shortkeys({ 'N': function () { $('#try_me').append('N<br />'); }, 'M': function () { $('#try_me').append('M<br />'); }, 'Space': function () { $('#try_me').append('Space<br />'); }, 'Space+V': function () { $('#try_me').append('Space+V<br />'); }, 'V': function () { $('#try_me').append('V<br />');
IEはwindow.resizeがめっちゃ重いです。案の定、uupaaさんがすばらしいまとめと対策を書いていたので、ほとんどそのままjQueryのイベントで使えるようにプラグインの形にぶち込みました。 if (document.documentElement.uniqueID) (function ($, document_) { function size() { var root = document_.documentElement, body = document_.body; return { w: root && root.clientWidth || body.clientWidth, h: root && root.clientHeight || body.clientHeight }; } var lock_ = 0, size_, use_; $.event.speci
This plugin leverages the special event api, to add bind-able drop behavior events. This plugin is designed to work exclusively with $.event.special.drag, actually, it doesn't work without it. Download - jQuery 1.2.6+ required, jquery.event.drag 1.0+ required. jquery.event.drop-1.1.js Complex demo... This plugin compares "dragProxy" position and registered drop target positions asynchronously, bas
There are a few cases where you want to know if the user is idle. Namely: You want to preload more assets You want to grab their attention to pull them back You want close their banking session after 5 minutes of inactivity. (Jerk!) You want the site to sneak off the screen and see if they notice ;-) Nick Zakas wrote a script for YUI3 to handle these cases. His writeup has a great description of t
Here’s a useful debugging plugin for jQuery. It will list the handler/’s of any event binded to any element: The Code: // UPDATED -> NOW WORKS WITH jQuery 1.3.1 $.fn.listHandlers = function(events, outputFunction) { return this.each(function(i){ var elem = this, dEvents = $(this).data('events'); if (!dEvents) {return;} $.each(dEvents, function(name, handler){ if((new RegExp('^(' + (events === '*'
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く