ajax¸Ä±äÎı¾¿òµÄÖµ
´¦ÀíÏìÓ¦»ØÀ´µÄÄÚÈݵÄʱºò£º
function checkCallBack(){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
var result = xmlHttp.responseText;
var info=document.getElementById("info2").value;
info.innerHTML=result;
}
}
}
ÆäËûµÄ´«Öµ¶¼Ã»ÓÐÎÊÌ⣬ÎÒÖ»ÊÇÏë¸Ä±äidΪinfo2µÄtextµÄÖµ£»ÈçºÎʵÏÖ£¿£¿£¿
Çë½Ì£¬Ð»Ð»£¡£¡£¡£¡
function checkCallBack(){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
var result = xmlHttp.responseText;
var info=document.getElementById("info2").value;
info.value=result;
}
}
}
JScript code:
function checkCallBack(){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
var result = xmlHttp.responseText;
var info=document.getElementById("info2");
info.value=result;
}
}
}
½â¾öÁË£¡£¡
Ïà¹ØÎÊ´ð£º
µÚ14Õ µÄÊ÷ÐͲ˵¥µÄÀý×Ó²»ÄÜÔÚIEÖÐÕý³£ÏÔʾ£¨Ê÷µÄ½á¹¹¿ÉÒÔÕ¹¿ª£¬µ«Õ¹¿ªºóÔÙµã»÷¾Í²»ÄÜÊÕËõÁË£©£¬µ«ÄÜÔڹȸèä¯ÀÀÆ÷ÖÐʹÓã¬Óп´´ËÊéµÄÅóÓÑÄÜÖ¸µãÏÂÂð£¿
ºÃÌù ºÇ
dfgfgfgffffff
лл¡£
......
²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.UI._Upd ......
´ò¿ªÒ³Ã棬¾ÍÓÐjs²Å´íÎó£¬ËµÈ±ÉÙ¶ÔÏó¡£
//¹¦ÄÜ £º »ñȡѡÔñ Ê÷½Úµã µÄ id ,ʹÓÃdwr»ñÈ¡Êý¾Ý£¬²¢Ìî³ä ÏÂÀÁбí
// isContainSubNode Ϊ¶àÑ¡¿ò£¬Ö»ÊÇÓÃÓÚ±êʶ¶øÒÑ
<script type=& ......
ǰ̨´úÂ룺
C# code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tttt.aspx.cs" Inherits="tttt" %>
<%@ Register Assembly="System.W ......
Ö÷Ò³ÖÐÓиöÄ£¿é£¨µ÷ÓÃĸ°æÒ³£©ÓÐÒ»¸öDropDownlist ºÍÒ»¸öLabel¿Ø¼þ£¬ÒªÇóÑ¡ÔñDropDownlistÖеÄÏîʱ °ÑÊý¾Ý¿âÖÐÏàÓ¦µÄÄÚÈÝÏÔʾµ½LabelÉÏ ¶ø²»Ë¢ÐÂÕû¸öÒ³Ãæ¡£
֮ǰû¶ÔAjaxÓÐÈκÎÁ˽⣬²»ÖªµÀÈçºÎʵÏÖ¾Ö²¿Ë¢Ð¡£ÏÖÔ ......