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

ajax ÖеÄstatusΪʲô=500°¡£¿£¿¼± - .NET¼¼Êõ / C#

<script type="text/javascript" language="javascript">
  function excuAjax(url, funName, param) {
  var xmlhttp;
  if (window.ActiveXObject) {
  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } else {
  xmlhttp = new XMLHttpRequest();
  }
  xmlhttp.open("GET", url, true);
  xmlhttp.onreadystatechange = function() {
  if (xmlhttp.readyState == 4) {
  if (xmlhttp.status == 200) {
  var xml = xmlhttp.responseXML;
  funName(xml);
  }
  }
  }
  xmlhttp.setRequestHeader("Content-Type", "application/JSON");
  xmlhttp.send(param);

  }
  function getProject() {
  var url = "http://localhost:3399/Web/WebService.asmx/HelloWorld";
  excuAjax(url, callStr, null);
  }
  function callStr(rs) {
  alert(rs);
  }
  function callProject(rs) {
  var projects = document.getElementById("s_Project");


Ïà¹ØÎÊ´ð£º

Çë½ÌajaxʵÏÖµ¯³ö´°ÌåµÄÓ÷¨ - Web ¿ª·¢ / Ajax

°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
  {
  ScriptManager.R ......

struts2ʹÓÃajaxµÄÎÊÌâ~~~ - Java / Java EE

ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔÇ°servletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......

jqueryÖÐÏòajaxÎÊÌâ - Web ¿ª·¢ / JavaScript

ÎÒÔÚÒ»¸öhtmlÖÐдÈçÏ´úÂ룺
JScript code:
<html>
<head>
<script type="text/javascript" charset="utf-8"
src="script/jquery-1.3.2.min ......

ajax¶ÁÈ¡ashxÊä³öµÄjsonÊý¾Ý±¨´í - .NET¼¼Êõ / C#

ÎÒÓÃjqueryÎÞË¢ÐÂÉÏ´«Í¼Æ¬ºó·µ»Øjson¸ñʽµÄÊý¾Ý±¨´í
£¨Êµ¼ÊÉÏͼƬÊÇÉÏ´«³É¹¦µÄÁË£¬Ö»ÊÇ·µ»Øjson¸ñʽ×ܶÁ²»µ½£¬×ÜÊDZ¨´í£©
ÎÒµ÷ÊÔÉÏ´«µÄashxÒ³ÈçÏÂ
ÎÞ·¨ÏÔʾ XML Ò³¡£ 
ʹÓà Ñùʽ±íÎÞ·¨²é¿´ XML ÊäÈë¡£Çë¸ü ......

AJAX ºǫ́Ôõôȡ²»µ½Ö± - .NET¼¼Êõ / ASP.NET

´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
  var xmlhttp;
  if (window.ActiveXObject) {
  //IE
  try {
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ