JBOSS 点滴

丰丰的博客

AJAX学习笔记

一:Ajax思路:
   1: send_request('sample1_2.jsp?username='+username);
   2:   http_request = new ActiveXObject("Msxml2.XMLHTTP");
   3:http_request.onreadystatechange = processRequest;
   4:http_request.open("GET", url, true);
    http_request.send(null);
  5:if (http_request.readyState == 4)
    if (http_request.status == 200)
 说明:alert(http_request.responseText);返回整个页面内容

posted on 2006-12-22 16:40 半导体 阅读(182) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: