prototype.jsとmootoolsのライブラリ併用時のコンフリクト
オフィシャルフォーラムとかGoogleディスカッショングループも検索してみましたが、対応は不可能な模様。「併存できないから、どちらかを諦めろ」が結論みたい。
Why can't I use Prototype, JQuery, Scriptaculous, and mootools in one page?
Short and sweet answer is that you just can't. The more complicated answer, is that some of those frameworks use similar functions (like $) and they add Events which conflict with mootools. Depending on the order, and the framework that you add you will receive different results. Lastly, mootools is not trying to be conflict free. Therefore, do not expect this to be a bug or unwanted behavior--mootools will not try to become conflict free. Expect, to make a choice between mootools and the other frameworks.
JavaScriptライブラリの併存なんてありそうな話。他のライブラリはどうかと思って調べてみると、jQueryではjQuery.noConflict()で他のライブラリとのコンフリクトを回避できる模様。なんてポータブルな発想。素晴らしい。完成品だ。
using_jquery_with_other_javascript_libraries
jQuery 1.1 では,他のライブラリと同時利用しても大丈夫なように設計されているため,jQuery.noConflict();という一行を書き足すだけで他のライブラリと一緒に使えます
チェックボックスの見た目を変えるFancyForms、こういうのがあるのね。
JavaScriptで動作する部分がmootoolsを使っている。
http://lipidity.com/fancy-form/
FancyForm is a powerful checkbox replacement script used to provide the ultimate flexibility in changing the appearance and function of HTML form elements.
CheckBoxの代替ということであれば、FancyFormsでなくても同じ原理(JavaScript+CSS)で動くライブラリがありそう。
CRIR: Checkbox & Radio Input Replacement
コメント
コメントの投稿
トラックバック
http://cramoty.blog83.fc2.com/tb.php/93-bf97a2e5
この記事にトラックバックする(FC2ブログユーザー)


