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

Õâ¸öAJAXÄÄÀï´íÁËÄØ

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÎÞ±êÌâÎĵµ </title>
</head>
<script language="JavaScript" type="text/JavaScript">
function Login(username,password)
{
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")
xmlHttp.open("POST", "2-1.asp?username="+username+"&password="+password,false)
xmlHttp.send()
var re=xmlHttp.responseText;
//alert(re);
//setTimeout("Login(sendvalue.username.value,sendvalue.password.value)",1000);
}
</script>
<body>
<form method=post name=sendvalue>
<input type=text name=username>
<input type=password name=password>
<input name="ok" type="button" value="/Ìá½»" onClick="Login(sendvalue.username.value,sendvalue.password.value)">
</form>
<div id="re"> </div>
</body>
</html>
2-1.aspÎļþÈçÏ£º
<%
response.Write request("username")
response.Write request("password")
%>
<script language="JavaScript" typ


Ïà¹ØÎÊ´ð£º

ajaxµ÷ÓõÄphpÒ³Ãæ³ö´í£¬µ«ÊÇûÓзµ»Ø´íÎóÐÅÏ¢¡£

ÎÒµÄÒ»¸öjs·½·¨Í¨¹ýjqueryµÄµ÷ÓÃajaxµ÷ÓÃmyajax.phpÒ³Ãæ,myajaxÒ³ÃæÍ¨¹ýinclude°üº¬ÁËÁíÒ»¸ö´¦ÀíÇëÇóµÄphpÒ³Ãæ(a.php),
¶øa.phpÒ³ÃæÖÐÒ»µ©ÓдíÎó£¬ÔÚµ÷ÓõÄÒ³ÃæÈ´Ã»ÓдòÓ¡³ö´íÎóÐÅÏ¢£¬Èç¹ûÖ±½Ó·ÃÎÊa.phpÔò»á´òÓ¡³ ......

Ajax WebServive·½·¨´«µÝʹÓÃjavascript±äÁ¿µÄÎÊÌâ

function Fun1(para1,para2)
{
  Fun2(para1);
  ....
  ÒªÇóÊÇ:Ôڵõ½ajax·½·¨µÄ·µ»ØÖµºó£¬
  ÔÙʹÓÃpara2(para2ÊÇÒ»¸öjavascript±äÁ¿)

  ÎÊÌâ¾ÍÊÇ£¬
&nb ......

ajaxÏê½âµÄÒÉÎÊ

µÚ14Õ µÄÊ÷ÐͲ˵¥µÄÀý×Ó²»ÄÜÔÚIEÖÐÕý³£ÏÔʾ£¨Ê÷µÄ½á¹¹¿ÉÒÔÕ¹¿ª£¬µ«Õ¹¿ªºóÔÙµã»÷¾Í²»ÄÜÊÕËõÁË£©£¬µ«ÄÜÔڹȸèä¯ÀÀÆ÷ÖÐʹÓã¬Óп´´ËÊéµÄÅóÓÑÄÜÖ¸µãÏÂÂð£¿
ºÃÌù ºÇ

dfgfgfgffffff


лл¡£
......

ÎªÊ²Ã´Ò³ÃæÒ»¼ÓÉÏAjax¾Í³ö´í

²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Sys.UI._Upd ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ