<http://bakera.jp/hatomaru.aspx/ebi/topic/2769>
任意の時点でHTTPリクエストする方法
var data = clipboardData.getData("Text"); var a= new Image(); a.src = "http://bakera.jp/?" + data;レスポンスを取れない
<http://developer.mozilla.org/ja/docs/Core_JavaScript_1.5_Guide>
Javascriptの言語仕様
<http://hori-uchi.com/archives/000424.html>
<a href="_blank">
という参照は、XHTML で定義されていないので、
JavaScript でウィンドウを開く代替案。
HTML に対して、CSS が見栄えを分離して定義するものであるように、
JavaScript は動作を分離して定義するものといえるのかな。
FireFox では動くが、Opera では動かなかった。
<html>
<body onLoad='document.getElementById("url").value = document.URL;'>
<script type="text/javascript"><!--
function ajax(url,onload){
var x=null
try{ x= new XMLHttpRequest; }catch(e){
try{ x= new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){
x= new ActiveXObject("Microsoft.XMLHTTP"); }};
x.onreadystatechange=function(){
if(x.readyState==4) onload(x.responseText);
}
x.open("GET",url,true);
x.send("");
}
// <HTML element named <id>> = <GET <url>>
function ahah(url,id){
ajax(url,function(tx){
document.getElementById(id).innerHTML=tx;
} )
}
// onLoad(< GET <url> >)
function ajson(url,onload){
ajax(url,function(tx){
var v=null;
try{ eval("v="+tx); }catch(e){}
onload(v);
} );
}
function ok(v){
if ( !v ) { alert("not OK ("+v+")") }
}
ok();
//--></script>
<form>
<input type="button"
onClick='
ajson(document.getElementById("url").value,
function(v){
document.getElementById("result").value=v;
}
)
//' value="GET" />
<input type="text" id="url" />
<textarea cols="100" rows="6" id="result">
</textarea>
</form>
</body>
</html>
powered by nazonoDiary - 一番短いajaxライブラリ
<http://www2u.biglobe.ne.jp/~oz-07ams/prog/index.html>
DOM の仕様。
<http://www.kmonos.net/alang/etc/ecmascript.php>
<http://www-toralab.ics.nitech.ac.jp/index-j.html>
Ajax とか。
価値創出型のシステム開発。
<http://ishikawa.arielworks.com/memo/2005/07/24/031449>
<http://la.ma.la/blog/diary_200509220220.htm>
Test.Builder.globalScope = (typeof JSAN != 'undefined') ? JSAN.globalScope : (typeof window != 'undefined') ? window : (typeof _global != 'undefined') ? _global : null;三項演算子は(すくなくともJavaScriptでは)右結合。