ミームの死骸を待ちながら

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators. We, alone on earth, can rebel against the tyranny of the selfish replicators. - Richard Dawkins "Selfish Gene"

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators.
We, alone on earth, can rebel against the tyranny of the selfish replicators.
- Richard Dawkins "Selfish Gene"

2007-01-09から1日間の記事一覧

AjaxなRails

Railsで使い易いのは link_to_remote() <%= link_to_remote( "click here", :update => "目的のdiv", :url => { :action => :controllerのmethod }) %>methodは例えば render_text "hogehoge" + Rubyな処理んでメソッド実行された後に対応するviewが書かれる…

prototype.js

Ajaxオブジェクトで手軽にAjax。 Ajax.RequestクラスでXML取得。 var myAjax = new Ajax.Request HTTP呼び出し各段階(Completeとか)で関数呼び出し var myGlobalHandlers = sth でsthにonCreate, onCompleteとか。 prototype.jsにEnumerableオブジェクト。 A…

RailsなしのナマAjaxメモ

とりあえず基本は $("result").innerHTML = responseHttpObj.responseText;でdiv id="result"のとこにtextなHTML埋め込まれ。画像も同様。 が、innerHTMLではdiv内すべて書き換えてしまうので、オブジェクトをノードにしてみる。第五章 クライアントサイドの…