Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ajax»Øµ÷


xmlÊý¾Ý£º
writer.write("<root>" +
   "<name>a</name>" +
   "<name>b</name>"+
   "</root>");
ǰ̨½âÎö£º
request.onreadystatechange=function(){
  if(request.readyState==4){
   var x=request.responseXml;
   var root=x.documentElement;
   var name=root.getElementsByTagName("name");
   alert(name.length);
   alert(name[1].firstChild.data);
  }
 
 }
Êä³ö£ºb


Ïà¹ØÎĵµ£º

js Ajax Àà Éú»îÒª¿ìÀÖ

/*
κÑÔAJAX Àà
ʹÓ÷½·¨:
<mce:script type="text/javascript"><!--
var classAjax = new Ajax(sUrl,sRecvTyp,sQueryString,oResultFunc);
classAjax.post();//post·½Ê½·¢ËÍÊý¾Ý
classAjax.get();//get·½Ê½·¢ËÍÊý¾Ý
//sUrl·¢Ë͵ØÖ·
//sRecvTyp ½ÓÊÜÊý¾ÝÀàÐÍ:0Ϊxml 1Ϊtext
//oResultFunc ·µ»Ø½á¹û´¦Àíº ......

ajax½øÐÐÓû§µÄÓÐЧÐÔ¼ì²âʾÀý

ajax½øÐÐÓû§µÄÓÐЧÐÔ¼ì²âʾÀý
1¡¢  ÊäÈëÓò£º
»áÔ±µÄÓÐЧÐÔ¼ì²é£º
     <input type="text" name="username">&nbsp;&nbsp;<input type="button" value="¼ì²é" onclick="return check();">
2¡¢  JavaScript½Å±¾£º
var xmlHttp;
    //´´½¨XMLHttpRequest ......

ajaxµÄÁбíÁª¶¯Ê¾Àý

ajaxµÄÁбíÁª¶¯Ê¾Àý
1¡¢  ÊäÈëÓò£º
ÇëÑ¡ÔñÊ¡£º
    <select id="sel1" onchange="return choose(this);">
        <option value="">--ÇëÑ¡Ôñ--</option>
        <option value="1">ºþÄÏÊ¡</option>
&nb ......

ajaxѧϰ±Ê¼Ç1

<html>
<head>
<title></title>
</head>
<mce:script type="text/javascript"><!--
var xmlHttp = false;
try{
xmlHttp = new XMLHttpRequest();
}catch(trymicrosoft){
try{
xmlHttp = new ActiveXObject("Msxml2.XMLHT ......

AjaxµÄjs·â×°

function send_request(callback, urladdress, isReturnData){     
        var xmlhttp = getXMLHttpRequest();
        xmlhttp.onreadystatechange = function(){
       &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ