タグ

2009年2月2日のブックマーク (2件)

  • Using Unicode - Catalyst::Wiki

    Prior to version 5.90040 it was required that you load the Catalyst::Plugin::Unicode::Encoding plugin to ensure proper decoding/encoding of incoming request parameters and the outgoing body response respectively. This is done in your MyApp.pm: use Catalyst qw/ -Debug ConfigLoader Unicode::Encoding /; Since that version the Unicode support was added to core by shipping the plugin with Catalyst and

  • jQuery:1.3の新機能「live」を試してみる

    jQueryのバージョンが1.3になって増えた新機能「live()」 いまいちよく使い方がわかっていなかったので、 勉強をかねてのメモエントリーを残しておきます。 新機能live() 詳しくないので調べてみた。 live(type, fn) - jQuery 1.3.1 日語リファレンス んーいまいちピンとこないのですが、 追加した要素にもイベントが登録されるというのはわかった。 普通にclick()じゃダメ? では、通常のとliveを使った場合と その二つを作って見比べてみることにした。 まずは通常にclickを使った場合。 ■通常のclickの場合 $(".live").click(function(){ $(this).after('<p>ここをクリックしても何もない</p>'); }); ■プレビュー 見てわかると思うのですが、 最初からある部分以外でクリックしてもなにも変化ない

    jQuery:1.3の新機能「live」を試してみる