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

ajax»ù´¡ÔËÐв»³öÀ´£¿ - Web ¿ª·¢ / Ajax

index.html:

HTML code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Using</title>

<script type="text/javascript">

var xmlHttp;

function createXMLHttpRequest() {

if (window.ActiveXObject) {

xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

}

else if (window.XMLHttpRequest) {

xmlHttp = new XMLHttpRequest();

}

}



function startRequest() {

createXMLHttpRequest();

xmlHttp.onreadystatechange = handleStateChange;

xmlHttp.open("post", "in.html", true);

xmlHttp.send(null);

}



function handleStateChange() {

if(xmlHttp.readyState == 4) {

if(xmlHttp.status == 200) {

document.getElementById("results").innerHTML = xmlHttp.responseText;

}


}

}

</script>

</head>

<body>

<input type="button" value="Search" onclick="startRequest();"/>

<div id="results"></div>

</body>

</html>





in.html£º

HTML code



Cod


Ïà¹ØÎÊ´ð£º

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

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

struts2ʹÓÃajaxµÄÎÊÌâ~~~ - Web ¿ª·¢ / Ajax

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

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

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

ajaxÎÞ·¨¼ÓÔØ·µ»ØµÄÖµ - Web ¿ª·¢ / Ajax

ÒòΪÍøÕ¾¶¼ÊÇÉú³É¾²Ì¬µÄÄÚÈÝ¡£ÓÐЩ¶«Î÷û°ì·¨ÊµÊ±¸üС£ÎÒ¾Í×ö³ÉÁËAJAXÁбíµÄÐÎʽÁË¡£
ÏÖÔÚµÄÎÊÌâÀ´ÁË£¬¿´ÏÂÃæµÄÍøÖ·£º
http://www.net1573.com/article/art_38.html
Ò³ÃæÓйã¸æ¼ÓÔØ£¬ÔĶÁ´ÎÊý£¬»¹ÓÐÎÄÕÂÆÀÂÛ¡£Õâ ......

AJAX µ÷ÓÃBLL²ãÊý¾ÝÔÙ´ÎÇó¾È.. - .NET¼¼Êõ / C#

$(document).ready(function() {
  function listparam(param) {
  param.OperationFlag = 1;
  return param;
  }
  var param = {
  ClassNam ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ