在AJAX中,有一个地方是无法获得到鼠标坐标的

Code
function QueryInfo(ID)
{
//jquery的AJAX请求
$.get("../OrderForm/index.aspx",{ num:ID,t:"info" },function(data){
ShowList(data);
});
}
//响应得方法
function ShowList(data)
{
x = window.event.x;
y = window.event.y;
document.getElementById("info").style.left =x;
document.getElementById("info").style.top =y ;
document.getElementById("info").style.display ="inline";
}
在上述代码中运行到
x=window.event.x;
处时候是要报一个找不到对象得异常,x的值也无法获取
好像在AJAX的响应方法ShowList()内都是无法使用window.event,event对象的,具体原因我还不清楚,但是运行到这个里时是要报异常的,如果将
x =window.event.x;
y = window.event.y;
放到QueryInfo()方法中则可以正常运行
这个问题搞了我将近一个多小时,头都弄大了,现在给出来,希望大家在开发的时候不要在这里浪费时间了