jQuery入門– AJAX load() を利用するサンプルコード

参考コード:
$(“button").click(function(){
$(“#cftdiv").load(“demo_test.txt",function(responseTxt,statusTxt,xhr){
if(statusTxt=="success")
alert(“loading success!");
if(statusTxt=="error")
alert(“Error: “+xhr.status+": “+xhr.statusText);
});
});

JavaScript

Posted by arkgame