這是響應thise一個問題:Javascript AJAX function not working in IE?我將如何使用jQuery獲取頁面內容並將其呈現在div中?
我需要jQuery來這樣做:
function render_message(id)
{
var xmlHttp;
xmlHttp=new XMLHttpRequest();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
document.getElementById('message').innerHTML=xmlHttp.responseText;
document.getElementById('message').style.display='';
}
}
var url="include/javascript/message.php";
url=url+"?q="+id;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
有人可以快速編寫功能給我嗎?
我想我讀過:) – skaffman 2009-04-17 15:21:11