キーワード検索「delegate」
リリースされたばかりのjQuery 1.7.1に対応したチートシート | コリス
先月、リリースされたばかりのjQuery 1.7.1に対応したチートシートを紹介します。 即ダウンロード、即保存ものですね。 jQuery 1.7.1は1.7のバグフィックス版で、リリース情報は下記をご覧ください。 jQuery 1.7.1 Released jQuery 1.7 Released jQuery 1.7のAPIで大きく変わったのは、.on(), .off()が追加されたことです。こ...
jQuery 1.7の on() off()について調べてみた | バシャログ。
新しいチャリを手に入れたら歯車や金属のバーを眺めてニヤニヤするようになったminamiです。 11/3にjQueryの最新バージョン1.7がリリースされました。大小さまざまな機能追加がされましたが、その中でもかなり大きな「.on()」「.off()」というイベントAPIが追加されましたが、今までのイベントAPIとどう違うのかいまいちわからなかったので調べてみました。 「.on()」「.off()」...
おしゃれjQuery、Good Parts、Bad Parts - 素人がプログラミングを勉強するブログ
jQueryは互換性を保ちつつも洗練されたAPIを取り入れているので、新しく書くときは新しいAPIを使った方が良い。liveとかセレクタの:hoverとかはBad Partsだ。 jQuery.fn.on / jQuery.fn.offlive/delegate/bind/click等は滅びた。全てonを使おう。 また、data引数を使う場合は必ずdataをオブジェクトかnullにする。dataが...
0-9, jQueryのliveやdelegateは実際何をやってるのか
jQueryにはイベント制御のAPIとして、clickやmouseoverの元になるbindの他に、同じような呼び出し方のliveやdelegateが提供されている。 bindはDOM APIで提供されているaddEventListenerのwrapperだが、liveは以下のような実装になっている。 1. 第一引数のイベント名でdocument objectにlive用のイベントハンドラーをbi...
JS→Objc 連続でのデータ送信不能問題とその解決法 « iPhoneアプリ練習帳
前提知識 iPhoneアプリ内にWeb(HTML)を表示するには、UIWebViewを使います。そして、UIWebViewの中のJavaScriptから、Objective-Cにデータを渡す場合は、location.hrefの値を変更します。UIWebView発生した画面遷移イベントをどうするかは、UIWebViewのdelegate先が判定します。data://で始まるなどといったルールを満たし...
Web Dev .NET: Differences Between jQuery .bind() vs .live() vs .delegate() vs .on()
Monday, February 06, 2012 Differences Between jQuery .bind() vs .live() vs .delegate() vs .on() Introduction I've seen quite a bit of confusion from developers about what the real different is between...
jQueryコードリーディング: bind(),live(),delegate() - <s>gnarl,</s>技術メモ”’<marquee><textarea>¥
jQueryコードリーディングおはようございます。コードリーディング第四回です。jQueryには、特定のエレメントにイベントを割り当てるメソッドとしてbind,live,delegateが存在します。今回は、これらのメソッドの実装を追ってみたいと思います。 対象jQuery 1.5.0 これまでのエントリ配列、each初期化、extendセレクタを渡した場合の処理 はじめにbind,live,de...
jQueryの.bind(), .live(), .delegate()の違い | JSer.info
The Difference Between jQuery’s .bind(), .live(), and .delegate() - Alfa Jango Blog http://www.alfajango.com/blog/the-difference-between-jquerys-bind-live-and-delegate/jQueryの.bind(), .live(), .delega...
InfoQ: JQuery 1.7は、IE6-8にHTML5を提供し、廃止予定ポリシーを追加した
原文(投稿日:2011/11/14)へのリンク 先日、新しいEvent APIs、Delegatedイベントのパフォーマンス向上、IE6-8のHTML5サポート、AMDスペックのサポートなどを盛り込んだJQuery 1.7がリリースされた。チームはまた、JQueryをスリムに維持するために、特定の機能を非推奨にしはじめた。 以下は、いくつかの新しい興味深いJQuery 1.7の機能である。 - 新...
Brandon Aaron「jQueryでイベント委譲(Event Delegation)」 - クライアント・サイド・スクリプティング with Web Standards
Brandon Aaronによる2010.3.4のブログエントリEvent Delegation with jQueryjQueryでEvent delegationがいかに快適になるかを力説.live()/.die()や.delegate()/.undelegate()の使い所.live()や.delegate()ではダメときはどうする? 答:.bind()とか.closest()とか使うですよ...
Bind vs. Click vs. Delegate vs. Live · jsPerf
JavaScript performance comparison Revision 12 of this test case created on 31st May 2011 Info Determining whether it is faster to use click(), bind(), delegate(), or live() on click events. Preparatio...
jQuery 1.7がリリースされました - ぽりぴぃすらいと
プログラム, javascript | 16:33 | リリースノートはこちら。注目しているAPIは以下です。 Event API(.on/.off )これまでbind/unbindだったものがon/offを使えますまた、セレクターが引数に取られた場合は、.delegate()と同じ挙動を取ります。 $('a').bind('click', myHandler); $('a').on('click...
Delegate-able Drag-Drop Events for jQuery - Home - Jupiter Consulting
Wednesday 26 May, 2010 by justinbmeyerHave you ever wanted to use live and delegate with drag-drop events? Now you can! We are releasing JavaScriptMVC's delegate-able drag/drop plugins and extensions...
jQuery Create Event - Bind Logic to Dynamically Generated Elements | Eric Hynds - Website Developer
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 int...
Jordan Boesch「jQuery1.4.2の.delegate(),.undelegate()の使い方」 - クライアント・サイド・スクリプティング with Web Standards
Learning jQueryの2010.3.5の記事Using Delegate and Undelegate in jQuery 1.4.2「Event Delegation with jQuery」(斜め読み内容)と似たテーマで書いてる。以下斜め読んだ内容.live()は色々議論のあるメソッド On jQuery's live()jQuery.live / jQuery.fn.live Di...
Scripting with JavaScript in Cocoa
Safari 3 is lazier, which is good, but if you don't ask for a script object you wont get one. The original version got the script object from the windowScriptObjectAvailable delegate and failed to wor...
Twitter / javascripter: $.fn.liveより$.fn.delegateを使 ...
$.fn.liveより$.fn.delegateを使うほうが良いと思う。要素に対する操作という一貫性ではdelegateのほうが自然で、liveだとthis.selectorが必要なだけなのにコンストラクタでfindが走るし、しかもコンテキストを絞れない。liveのAPIは汚い。4:30 AM May 7th, 2010webから1人がリツイート
Brandon Aaron : Blog
Event Delegation with jQuery Thursday, March 4, 2010jQuery makes implementing event delegation quick and easy! In version 1.4.2 there are now three ways to utilize event delegation: .live(), .delegate...
The Difference Between jQuery’s .bind(), .live(), and .delegate() - Alfa Jango Blog
The difference between .bind(), .live(), and .delegate() is not always apparent. Having a clear understanding of all the differences, though, will help us write more concise code and prevent bugs from...
