ajax×ö¶þ¼¶Áª¶¯µÄÎÊÌâ
ÎÒ×öÒ»¸öÊ¡ÊеĶþ¼¶Ïµ¥²Ëµ¥£¬µ±ÎÒÑ¡Ôñij¸öÊ¡ºó¶ÔӦʡµÄÊоÍÏÔʾÔÚÁ˵ڶþ¸öÁбí¿òÖУ¬µ±ÎÒÔÙ´ÎÑ¡ÔñÒ»¸öÊ¡ºóµÚ¶þ¸öÊ¡µÄÊÐÒ²ÄÜÏÔʾÔÚµÚ¶þ¸öÁбí¿òÖУ¬µ«ºÜ·³È˵ÄÊÇÔÚÏÔʾµÚ¶þ¸öÊеÄͬʱÎÒµÚÒ»´ÎÑ¡µÄÒ²»¹±£ÁôÔÚÁËÁбí¿òÖУ¬ÒÔ´ËÀàÍÆ£¬ÎÒÑ¡ÔñÊ¡µÄ´ÎÊýÔ½¶à£¬µÚ¶þ¸öÁбí¿òµÄÄÚÈÝÒ²¾ÍÔ½¶à£¬ºÃÏñ»áÀÛ¼ÓÆðÀ´Ò»Ñù~~
´ó¼Ò¿ì¸øÎÒÏëÏë°ì·¨°É£¬ÇóÇó´ó¼ÒÁË!!!!
Õâ¸öÎÊÌâÀ§Èźܾã¬×òÌìÍíÉÏÁ½µãû˯¾õÒ²²»ÖªµÀʲôÔÒò.
Ïà¹Øjs´úÂë:
if(ajaxObj.status==200)
{
var txt = ajaxObj.responseText
var SmallClassStr = txt.split("|");
for(var i=0;i <SmallClassStr.length-1;i++)
{
var SmallItem = SmallClassStr[i].split(",");
var SmallClass = document.getElementById("SmallClass");
var soption = new Option(SmallItem[1],SmallItem[0]);
SmallClass.options.add(soption);
}
}
°ï¶¥£¬²»ÖªµÀÊý¾ÝÊÇɶ¸ñʽµÄ
document.getElementById("SmallClass").options.length=0
°ÑÕâ¾ä´úÂë¼ÓÔØforÇ°
ÄãÊÇÀÏÁõ£¿
document.getElementById("select").options.length=0
Ö»Ö§³ÖIE
Ò²¿ÉÒÔÓÃÑ»·É¾³ý
for(var i=0;i <document.getElementById("select").options.length;i++)
{
document.getElem
Ïà¹ØÎÊ´ð£º
ÎÒµÄÒ³ÃæÀïÓõÄAJAX¿Ø¼þ µ«Ò³Ãæ¾²Ö¹Ò»¶Îʱ¼ä¾Í»á³öÏÖÉÏÃæµÄÒ»¸ö´íÎóÊÇÔõô»áÊÂѽ Ôõô½â¾ö°¡
¸ßÊÖ°ï°ïæ°¡
½«ÏîÄ¿Éϼ¶Ä¿Â¼ÖеÄÖÐÎÄÃû³ÆÈ«²¿¸Ä³ÉÓ¢ÎÄ
Â¥ÉÏ˵µÄºÜÇå³þÁË¡£°ï¶¥Ò»Ï°É
Õâ¸öÎÊÌâ²»ÊǺܳ£ ......
²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.UI._Upd ......
ÔÚ¼ÒÑо¿ajax£¬¿´Á˱ðÈ˵ÄÒ»¸öÍøÉϹºÎïÉ̳ÇÏîÄ¿µÄÔ´´úÂ룬×Ô¼ºÒ²À´·Â±ðÈ˵Ķ«Î÷Á·Ï°Á·Ï°£¬Ã»Ïë³öÎÊÌâÁË£¡Ò»ÏµÄÕâЩ´úÂëÊÇÎÒ·ÂÕÕ±ðÈËдµÄ¡£ÎÒÊÇÏëÈÃ×¢²áµÄÈËÌîдÓû§Ãû£¬¹â±êÀ뿪Óû§ÃûºóÃæµÄÌîд¿Õ°×´¦ºóÁ¢¿ÌÀûÓÃaj ......
»Øµ÷º¯ÊýÈçÏ£º
function deleteCallBack(data)
{
if(data=="ɾ³ý³É¹¦")
{
alert(data);
location.reload();
}
else
{
alert(data);
}
}
²»Ìøת Ö»ÊÇÏÔʾalertÐÅÏ ......
HuiFu.aspxÒ³Ãæ
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HuiFu.aspx.cs" Inherits="fdfdcs" %>
<!DOCTYPE html PUBLIC &q ......