Ajax无法正常工作 [英] Ajax is not working properly

查看:97
本文介绍了Ajax无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于ajax

我有两个下拉列表框,一个用于选择国家,另一个用于根据已选择的国家来选择州

最初,我在XML文件中具有所有国家及其对应的州.如果选择任何一个国家,它将搜索并发送一个xml文件作为对ajax请求的响应,该文件包含所选国家的州


当我尝试运行该网站时,对于下拉列表框中的前几个选择,根本没有任何回应

经过dropdownlist框的少量选择后,它可以正常工作……可能是什么错误.......

Regarding ajax

I have two dropdown list boxes one to choose country and another one to choose states based on the country which has been selected

Initially I have all the countries and its corresponding states in the XML file.if I select any one of the country, it will search and send one xml file as response to ajax request which contains the states for the chosen country


When i try to run the website, For the first few selections in dropdownlist box, there was no response at all

After few selection made with dropdownlist box it works fine...... what might be the error .......

推荐答案

是的,我调试过没错...在下拉列表框中再进行几次选择后,它工作正常
yes i debugged there were no error...it is working fine after few more selections in the drop down list box


这篇关于Ajax无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆