AJAX!
function eidtPageCheckIsOrder ( serverid ){
var telephonenum = document.formx.TELPHONENUM.value;
var webWapFlag=document.formx.WEBORWAPFLAG.value;
var param=setPisaQueryString('TELPHONENUM',telephonenum,'WEBORWAPFLAG',webWapFlag,'serverid',serverid,'destFolderId',serverid);
createPisaXMLHttpRequest();
var url="/portalWeb/ajaxCheckService.do";
xmlHttp.open('POST',url,true);
xmlHttp.setRequestHeader("content-type","application/x-www-form-urlencoded");
if ( serverid == 4 )
{
xmlHttp.onreadystatechange=eidtPageCheckIsOrderEidtBack;
}
else if ( serverid == 58)
{
xmlHttp.onreadystatechange=eidtPageCheckIsOrderSaveBack;
}
else if( serverid == 60 )
{
xmlHttp.onreadystatechange=checkPersonMdidaIsOrderBack;
}
xmlHttp.send(param);
}
Ïà¹ØÎĵµ£º
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>JavaScript Sample</title>
<link rel="stylesheet" type="text/css" href="main.css" media="all">
<sc ......
ajaxµÄ¹¦ÄÜÖ÷ÒªÊÇÓ¦ÓÃÔÚjsÉÏ£¬ajax¶ÔaspûʲôҪÇó£¬aspÖ»¸ºÔðÔÚºǫ́ÏÔʾ¼°²Ù×÷·þÎñ¶ËµÄÊý¾Ý¡£
¿ÉÒÔÏñÏÂÃæÕâÑù˼¿¼£º
1.д±íµ¥µÚÒ»ÏÈçÓû§Ãû£©
2.onblurʼþ(ʧȥ½¹µã)·¢Éúʱ¿ªÊ¼ÑéÖ¤£¬onblur="checkusername()"
3.js·¢Ò»¸öÇëÇó¸øµÚÒ»¸öasp(¼Ù¶¨Îªajaxusername.asp)Èç¹û´ÓÊý¾Ý¿âÖÐÕÒµ½ÁËÕâ¸öÓû§£¬¸ø³ö1 ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......
0**£ºÎ´±»Ê¼»¯
1**£ºÇëÇóÊÕµ½£¬¼ÌÐø´¦Àí
2**£º²Ù×÷³É¹¦ÊÕµ½£¬·ÖÎö¡¢½ÓÊÜ
3**£ºÍê³É´ËÇëÇó±ØÐë½øÒ»²½´¦Àí
4**£ºÇëÇó°üº¬Ò»¸ö´íÎóÓï·¨»ò²»ÄÜÍê³É
5**£º·þÎñÆ÷Ö´ÐÐÒ»¸öÍêÈ«ÓÐЧÇëÇóʧ°Ü
100——¿Í»§±ØÐë¼ÌÐø·¢³öÇëÇó
101——¿Í»§ÒªÇó·þÎñÆ÷¸ù¾ÝÇëÇóת»»HTTPÐÒé°æ±¾
200——½»Ò ......