【发布时间】:2009-04-17 23:23:41
【问题描述】:
这是一个回复thise的问题:Javascript AJAX function not working in IE?
我需要 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);
}
有人可以快速为我编写函数吗?
【问题讨论】:
标签: javascript jquery