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

asp ajaxÐÂÎÅÆÀÂÛ

Ajax.js
// AJAXÀà
function AJAXRequest() {
var xmlObj = false;
var CBfunc,ObjSelf;
ObjSelf=this;
try { xmlObj=new XMLHttpRequest; }
catch(e) {
try { xmlObj=new ActiveXObject("MSXML2.XMLHTTP"); }
catch(e2) {
try { xmlObj=new ActiveXObject("Microsoft.XMLHTTP"); }
catch(e3) { xmlObj=false; }
}
}
if (!xmlObj) return false;
this.method="POST";
this.url;
this.async=true;
this.content="";
this.callback=function(cbobj) {return;}
this.send=function() {
if(!this.method||!this.url||!this.async) return false;
xmlObj.open (this.method, this.url, this.async);
if(this.method=="POST") xmlObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlObj.onreadystatechange=function() {
if(xmlObj.readyState==4) {
if(xmlObj.status==200) {
ObjSelf.callback(xmlObj);
}
}
}
if(this.method=="POST") xmlObj.send(this.content);
else xmlObj.send(null);
}
}
ǰ̨ҳÃæ:
<style type="text/css">
#fbpl
{
width:600px;
height:200px;
background-color:#EEEEEE;
}
#fbbt
{
height:30px;
padding-top:5px;
text-align:center;
font-weight:bold;
color:#FF0000;
background-color:#CCCCCC;
}
#fbfm
{
text-align:left;
margin-left:80px;
}
#fbfm ul {
  margin:10px;
  padding:0px;
}
#fbfm li {
  list-style: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
}
#nc
{
width:300;
border:#CCCCCC solid 1px;
}
#content
{
width:350;
height:100;
border:#CCCCCC solid 1px;
}
#anniu
{
height:30px;
text-align:center;
}
.bt
{
background-color:#FFFFFF;
color:#000000;
font-size:12px;
width:60;
height:20;
border:#CCCCCC solid 1px;
}
#pllist
{
width:600px;
background-color:#EEEEEE;
font-size:12px;
}
#pllbt
{
height:30px;
padding-top:5px;
text-align:center;
font-weight:bold;
color:#FF0000;
background-color:#CCCCCC;
}
#plbox
{
font-size:12px;
}
/*
.u {
font-size: 12px;
float:left;
height:25px;
line


Ïà¹ØÎĵµ£º

Ajax¼òµ¥ÊµÀý

Ajax£¬Òì²½JavaScriptÓëXML£¬ÊÇʹÓÿͻ§¶Ë½Å±¾ÓëWeb·þÎñÆ÷½»»»Êý¾ÝµÄWebÓ¦Óÿª·¢·½·¨¡£ÕâÑù£¬WebÒ³Ãæ²»Óôò¶Ï½»»¥Á÷³Ì½øÐÐÖØмӲ㬾ͿÉÒÔ¶¯Ì¬µØ¸üС£Ê¹ÓÃAjax£¬Äã¿ÉÒÔ´´½¨½Ó½ü±¾µØ×ÀÃæÓ¦Óõģ¬Ö±½ÓµÄ¡¢¸ß¿ÉÓõġ¢¸ü·á¸»µÄ¡¢¸ü¶¯Ì¬µÄWebÓû§½Ó¿Ú½çÃæ¡£
Ajax´¦Àí¹ý³Ì
Ò»¸öAjax½»»¥´ÓÒ»¸ö³ÆΪXMLHttpRequestµÄJavaScript ......

ASP.NET AJAX 4.0 ÖеÄÊý¾Ý°ó¶¨

´úÂëÏÂÔØ:
  ΧÈƸà bush »÷ÍËÍ£Ö¹£ºAJAX ÊÇ¿ÉÄܽöʹÓÃÒ»¸öÇ¿µÄ JavaScript ÒýÇ棬¿ÉÒÔÔÚ¿Í»§¶Ëä¯ÀÀÆ÷ÖÐÔËÐУ¬²¢Ìṩ¸ü¸ß¼¶ºÍÒì²½¹¦ÄÜ»ù´¡µÄ¡£ JavaScript ¿âµ±Ç°°üº¬ÔÚ ASP.NET 3.5 SP 1 ³¢ÊÔÊÇÒ»¸öÐèÒª£¬µ«²»×㣬½«ÕâÑùµÄ¿â¡£ Ò»¸ö¹¦ÄܸüÇ¿´óµÄ ASP.NET AJAX ƽ̨ÊDZØÐèµÄµÄ²¢ÇÒËüÖ»ÊDZ»ÒýÈëÁË ASP.NET AJAX 4.0 µÄ ......

ajax ÎÒдµÄÒ»¶Î´úÂë

<mce:script type="text/javascript"><!--
var xmlHttp = false;
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e2) {
xmlHttp = false;
}
}
if (!xmlHttp & ......

ajaxÂÒÂë½â¾ö×ܽá


javascriptÑØÓÃjavaµÄ×Ö·û´¦Àí·½Ê½£¬ÄÚ²¿ÊÇʹÓÃunicodeÀ´´¦ÀíËùÓÐ×Ö·ûµÄ£¬
µÚ¶þ£¬utf-8ÊÇÿ¸öºº×Ö£¨unicode×Ö·û£©ÓÃ3¸ö×Ö½ÚÀ´´æ´¢¡£
µÚÈý£¬ÓÃutf-8À´sendÊý¾ÝÊDz»»á³öÏÖÂÒÂëµÄ£¬ÊǺǫ́³ÌÐòûÓÐÕýÈ·½âÂë²Å»á³öÏÖÂÒÂë¡£
µÚËÄ£¬ajax·¢ËÍÊý¾ÝµÄʱºòÈç¹ûÐÞ¸Ä Content-Type Ϊ application/x-www-form-urlencoded"£¬¿Ï¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ