AJAX:readystate保持在1 [英] AJAX: readystate staying at 1

查看:66
本文介绍了AJAX:readystate保持在1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点麻烦让这个ajax工作。每当我在下面的页面中选择一个值时,我看到readyState为1,但从不改变为1.


这是我的html:

I''m having a little trouble getting this ajax to work. Everytime I select a value in the page below I''m seeing that the readyState is 1, but never changes from 1.

Here is my html:

展开 | 选择 | Wrap | 行号

推荐答案

嗨...


你打电话给你的回复-handling-function immedatly ...你必须使用一个闭包:

hi ...

you call your response-handling-function immedatly ... you have to use a closure:

展开 | 选择 | Wrap | 行号


甜蜜的谢谢gits!我是白痴,不敢相信我错过了。
Sweet thanks gits! I''m a moron, can''t believe I missed that.


嗨...


没问题:) ...来吧每当你有更多问题时回来......


亲切的问候
hi ...

no problem :) ... come back whenever you have more questions ...

kind regards


这篇关于AJAX:readystate保持在1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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