Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : ajax

ajaxÖÐffÍêȫʧЧ - Web ¿ª·¢ / Ajax

JScript code:
var xmlhttp;
if (window.ActiveXObject){xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
else if (window.XMLHttpRequest) {xmlhttp = new XMLHttpRequest();alert("1");}
alert(xmlhttp);
²âÊÔxmlhttp¶ÔÏóÊÇ´´½¨µÄwindow.XMLHttpRequest£¬µ«ÊǾÍÊDz»Ö´ÐÐÏÂÃæµÄ xmlHttp.on ......

phpÖÐÓÃajaxÔõô·µ»Ø¶þάÊý¾Ý - PHP / »ù´¡±à³Ì

´ó¼ÒÈ¡¸öÀý×Ó°É
ʹÓÃjsonÊý¾Ý¸ñʽ

²»ÄÜÕâÑùµÄ£¬phpҪת»¯Îª xml »òÕß json £¬Ç°Ì¨Óà jsÀ´½âÊÍ

ÓÐʲô²å¼þûÓÐÄØ£¿
ÒÔÇ°ÔÚJSPÀïÃæÓÃjsonrpc,дÂß¼­º¯Êý¿ÉÒÔÖ±½Ó·µ»ØÊý×é

PHP code:

$arRet = array( "error" => false, array( 'user', 'pass' ) );
echo json_encode( $arRet );

ajax·µ»ØÊý¾Ý ......

ajaxʵÏÖÊ¡ÊÐÁª¶¯³ö´í¸ßÊÖ°ïÎÒ¿´Ï - .NET¼¼Êõ / C#

<script language="javascript">
  //jbº¯Êý»á¸ù¾Ý²»Í¬µÄä¯ÀÀÆ÷³õʼ»¯¸öxmlhttp¶ÔÏó
  function jb()
  {
  var A=null; 
  try 
  { 
  A=new Act ......

΢ÈíµÄAJAX°²×°°ü °²×°ºóÎÊÌâ - .NET¼¼Êõ / ASP.NET

ÎÒ×°ÉÏ΢ÈíµÄAJAX°²×°°üÖ®ºó£¬´ò¿ªÖ®Ç°µÄÏîÄ¿£¬¼ÓÉϲ»ScriptManagerÄØ£¿
¶øÇÒ£¬ÔÚ×óÔòµÄ¹¤¾ßÏäÀïҲûÓÐAjax¹¤¾ßÑ¡Ï¡£
µ«ÊÇÈç¹ûÎÒн¨Ò»¸öÏîÄ¿µÄ»°£¬×Ô¶¯Éú³ÉµÄDefaultÒ³ÃæÖÐÓÐScriptManager,×óÔò´°Ì廹ÊÇûÓÐAjaxµÄ¹¤¾ßÏä¡£
ÄǾÍÓ¦¸ÃÊÇÄã°²×°µÄÎÊÌ⣬ȥMSµÄÕ¾µãÉÏÏÂÔØÕýÈ·µÄ°²×°°ü¡£

ÖØÐÂÏÂÔØÒ»¸ö°É£¬°æ±¾²»¶Ô

......

΢ÈíµÄAjaxÌí¼Ó²»ÉÏ - .NET¼¼Êõ / ASP.NET

<configSections>
  <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
  <sectionGroup name="system.web.extensions" ......

ASP.NET AJAXµÄ²ËÄñÎÊÌâ - .NET¼¼Êõ / ASP.NET

ÇëÎÊÔÚScriptManagerÖУ¬ÓÃÕâ¸öÒýÈëJS½Å±¾£º  
 <asp:ScriptReference Path="MyPath/MyCustomScript.js" />
ºÍÖ±½ÓÒýÈë½Å±¾ÓÐʲô²»Í¬ÄØ£¿
ÏñÕâÑù£º
  <script src="MyPath/MyCustomScript.js" type="text/javascript"></script>
ÇëÖ¸½Ì£ ......
×ܼǼÊý:837; ×ÜÒ³Êý:140; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [10] [11] [12] [13] 14 [15] [16] [17] [18] [19]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ