Ajax.dll实现无刷新二级联动
2007-10-11 16:48
639 查看
<SCRIPT language="javascript">
function cityResult()
{
var city=document.getElementById("DdlProvince");
AjaxMethod.GetCityList(city.value,get_city_Result_CallBack);
}
function get_city_Result_CallBack(response)
{
if (response.value != null)
{
//debugger;
document.all("DdlCity").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object" && ds.Tables != null)
{
for(var i=0; i<ds.Tables[0].Rows.length; i++)
{
var name=ds.Tables[0].Rows[i].Info;
var id=ds.Tables[0].Rows[i].ProvinceID;
document.all("DdlCity").options.add(new Option(name,id));
}
}
}
return
}
</SCRIPT>
function cityResult()
{
var city=document.getElementById("DdlProvince");
AjaxMethod.GetCityList(city.value,get_city_Result_CallBack);
}
function get_city_Result_CallBack(response)
{
if (response.value != null)
{
//debugger;
document.all("DdlCity").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object" && ds.Tables != null)
{
for(var i=0; i<ds.Tables[0].Rows.length; i++)
{
var name=ds.Tables[0].Rows[i].Info;
var id=ds.Tables[0].Rows[i].ProvinceID;
document.all("DdlCity").options.add(new Option(name,id));
}
}
}
return
}
</SCRIPT>
相关文章推荐
- asp.net DropDownList无刷新ajax二级联动实现详细过程
- asp.net DropDownList无刷新ajax二级联动实现详细过程
- AJAX实现DropDownList无刷新二级联动
- asp.net DropDownList无刷新ajax二级联动实现详细过程
- 用ajax(vb.net) 实现dropdownlist二级无刷新联动~!
- AjaxPro.2.dll实现省市的二级无刷新联动
- AJAX实现DropDownList无刷新二级联动(转载)
- jQuery+php+mysql,轻松实现ajax无刷新省市二级联动
- asp.net DropDownList无刷新ajax二级联动实现详细过程
- ajax实现dropdownlist无刷新二级联动
- java结合jQuery.ajax实现左右菜单联动刷新列表内容
- Ajax实现无刷新三联动下拉框
- 轻松实现无刷新三级联动菜单[VS2005和AjaxPro] (转)
- Ajax实现无刷新三联动下拉框
- 用Ajax.net实现的一个无刷新的多级联动下拉列表框
- Ajax实现省份-城市二级下拉联动
- asp.net下使用AjaxPro实现二级联动代码
- Ajax.dll 使用 net无刷新三联动下拉框
- JSF实现无刷新二级联动
- thinkphp+ajax 实现二级联动