通常のevent設定 $('#id').bind('click',function(ev){ console.info('clicked'); }); // #idの要素click時に"clicked"と表示 $('#id').trigger('click'); // "clicked"と表示 続きを読む
Once activated, we'll place the following badge in your repository's detail box: 続きを読む
Event delegation, as described in the first article of this series, is a way to take advantage of event bubbling to avoid binding an event listener more than once. jQuery 1.3 and the upcoming jQuery 1.4 have many features that make using even... 続きを読む
夢で医者にギブスくらい自分ではずせよと言われました。agoです。 昨日若手IT勉強会に参加させていただき、jQuery.live周辺とjsdeferredを読んできました。 そのとき気づいたのですが、Firefoxはdocument objectに対するclick eventが右クリック(event.button ... 続きを読む
札幌でホームページ制作をする社会人ハムの勉強ブログ。 JavaScriptやjQuery、XHTMLやCSS、その他思ったことなどについてなどを気ままに書きます。jQueryのpluginなども公開中。 jQuery plugin 自作plugin JavaScript (X)HTML CSS SEO 日記 プロフ Webコン タグ... 続きを読む
Understanding the Context in jQuery Wednesday, June 24, 2009 When selecting elements jQuery has an optional second argument called context. This context provides a means to limit the search within a specific node. This is great when you have ... 続きを読む
javascriptjQueryでサポートされたliveなイベントがどういう風に実現されているのか調べた。かなり複雑だったので詳細は追わなかったが、このようにしているようだ。 var live = function (selector, type, fun) { document.addEventListener( type, function (... 続きを読む
Subscribe to Cheat Sheets This cheat sheet is a quick reference to all functions and properties contained with the jQuery 1.3 library. Note that this cheat sheet does not cover any of the jQuery UI functionality. Preview Download PDF Note tha... 続きを読む
jQuery 1.3 リリース 2009年1月14日に、jQuery 1.3がリリースされました。 主な変更点を、以下に挙げます。 概要 セレクターエンジンをSizzleに変更 jQueryのCSSセレクターエンジンが、Sizzleと呼ばれる新たなものに変更されました。 このエンジンはjQueryの生... 続きを読む