Çó¾Èphp+ajaxÑéÖ¤ - PHP / »ù´¡±à³Ì
ajax.js
var xmlHttp;
function CreateXMLHttpRequest(){
if(window.XMLHttpRequest){
//Mozilla ä¯ÀÀÆ÷
xmlHttp=new XMLHttpRequest();
}else if(window.ActiveXObject){
//IEä¯ÀÀÆ÷
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHttp");
}
catch(e){
try{
cmlHttp=new ActiveXObject("Microsoft.XMLHttp");
}catch(e){}
}
}
if(xmlHttp==null){
alert("²»ÄÜ´´½¨XMLHttpRequest¶ÔÏó");
return false;
}
}
function sendAsynchronRequest(url,parameter,callback){
//´´½¨Ò»¸öXMLHttpRequest¶ÔÏó
createXMLHttpRequest();
if(parameter==null){
//ÉèÖÃXMLHttpRequest¶ÔÏóµÄÊôÐÔ²ÎÊý
//ÉèÖÃonreadystatechange
//±£´æÒ»¸ö»Øµ÷º¯ÊýÖ¸Õë
xmlHttp.onreadystatechange=callback;
//ÉèÖöԷþÎñÆ÷µ÷ÓõIJÎÊý
xmlHttp.open("GET",url,true);
//µ÷ÓÃsend·½·¨¾Í»áÏò·þÎñÆ÷¶Ë·¢ÆðÒ»¸öÒì²½ÇëÇó
//È¥·ÃÎÊÓÉURLÖ¸¶¨µÄ×ÊÔ´
xmlHttp.sned(null);
//·þÎñÆ÷¶Ï´¦ÀíÍêÇëÇóºó¿ªÊ¼·µ»Øresponse
//²¢ÓÉXMLHttpRequest¶ÔÏó¿ªÊ¼½ÓÊÕ
}else{
xmlHttp.onreadystatechange=callback;
xmlHttp.open("POST",url,true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
//²ÎÊý·ÅÖÃÔÚÇëÇóÌå
xmlHttp.send(parameter);
}
}
check.js
function checkname(){
var url="check.php";
var
Ïà¹ØÎÊ´ð£º
°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.R ......
ÎÒÔÚÒ»¸öhtmlÖÐдÈçÏ´úÂ룺
JScript code:
<html>
<head>
<script type="text/javascript" charset="utf-8"
src="script/jquery-1.3.2.min ......
zend guard¼ÓÃܵÄphpÊÇ¿ÉÒÔÆƽâµÄ£¬ÓÐµÄ ËµÊÇʹÓú¯Êý»ìÏý¿ÉÒÔ¸üÄÑÆƽâһЩ¡£ÔõôʹÓÃÄØ¡£
»òÕß´ó¼Ò¸æËßÎÒÄÄÖÖ¼ÓÃÜ·½Ê½¸ü°²È«¡£Ð»Ð»ÁË¡£
ÎÒÄ¿Ç°µÄzend guard°æ±¾ÊÇ4.0.1
ÎÞ½â
ÒýÓÃ
ÎÞ½â
²»¿ÉÄÜ°É¡£ÔÚÍøÉϲéÁ ......
ÈçÌ⣬Ôõôд¸öheadÍ·²¿ ÈÃÒ³Ã滺´æ1ÐÇÆÚ¡£
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Äã°ÑÀïÃæµÄʱ¼ä£¬¸Ä³Éµ±Ç°Ê±¼ä¼ÓÉÏÒ»¸öÐÇÆÚ
¼ÇµÃҪת»»³Égmtʱ¼ä
ÎÒÕâÑùдµÄ ²»ÖªµÀÐв»ÐС£
Ò»¸öÐ ......
ÕÒÁËÒ»¸ö,µ«ËÑË÷ºó²»Ìáʾ,ºÃÏñÎÊÌâ,²é²»³öÀ´ÔÒò,Ë°ï×Å¿´Ò»ÏÂ
http://www.chinaz.com/Program/Asp/020Q062632010.html
End_rbody_64769658//-->
¸Ã»Ø¸´ÓÚ2010-04-19 08:15:36±»°æÖ÷ɾ³ý
¶ÔÎÒÓÐ ......