2008-07-31から1日間の記事一覧
includeAndRun pluginを使う。 これと↓のjsファイルをてきとーに作ってHTMLの中でscriptタグで読み込んでやる。 $(function(){ $.includeAndRun('http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js',function(){ firebug.init(); firebug…
jQueryに標準で入っているjQuery.getScript関数で良い。 pluginのコード (function($){ $.extend($,{ includeAndRun:function(scriptUrl,callback){ var s = $('<script/>') .attr({ src:scriptUrl, language:'javascript', type:'text/javascript' }); if($.browser.</script/>…
jQueryに標準で入っているjQuery.getScript関数で良い。 Ajaxianの記事でこんなのを見つけてインスパイアされてつくった。 やっつけなのでFirefox3でしか動作確認してない。 pluginのコード (function($){ $.extend($,{ includeAndRun:function(scriptUrl,ca…