当Firebug关闭时,Ajax没有给出响应.......... [英] Ajax is not giving response when Firebug is off..........

查看:84
本文介绍了当Firebug关闭时,Ajax没有给出响应..........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正面临这个问题。我正在使用Ajax开发一个PHP / MySql工具。我曾经使用过Ajax函数进行验证。但我的问题是当我的firebug关闭/禁用Ajax dosent显示任何响应,我得到错误的消息。但是当firebug打开/启用时,它会显示正确的输出。可能是什么问题?

如果你想查看代码,那么我可以将它粘贴在这里。



问候,

RP

Hi,
I''m facing this problem. I''m developing a tool in PHP/MySql with litle bit use of Ajax. At once place i''ve used Ajax function for validation purpose . But my problem is when my firebug is off/disabled Ajax dosent show any response and i get the wrong messages. But when firebug is on/enabled then it shows the proper output. What could be the problem?
If you want to see the code then i can paste it here.


Regards,
RP

推荐答案

发布代码或者链接到测试页。
Either post the code or a link to a test page.



发布代码或指向测试页的链接。
Either post the code or a link to a test page.





这是Ajax代码..

Hi,
Here is the Ajax code..

展开 | 选择 | Wrap | 行号


responseText是一个字符串,因此您可能需要解析或修剪它。在使用responseText之前,您还应检查状态是否为200(OK)。
The responseText is a string, so you may want to parse or trim it. You should also check that the status is 200 (OK) before using the responseText.


这篇关于当Firebug关闭时,Ajax没有给出响应..........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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