posts - 12,comments - 0,trackbacks - 0
Supposed this is an xml file exists on your website, following example will get this file from server to client with Ajax

  var request = new XMLHttpRequest(); 
  request.onreadystatechange=callback;
  request.open("Get","Person.xml",true);
  request.send(null);



function callback()
{
    if(request.readyState==4)
        if(request.status==200)
            alert(request.responseText);
}
   
posted on 2007-07-06 11:04 GuangMing Lan 阅读(117) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。