如何在mozilla中看到警告弹出框?我的代码适用于chrome但不适用于mozilla [英] How can I see the alert pop up box in mozilla? My code works on chrome but not in mozilla

查看:69
本文介绍了如何在mozilla中看到警告弹出框?我的代码适用于chrome但不适用于mozilla的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I would like to ask why can't I see an alert pop-up whenever I use mozilla. I can see the alert pop-up whenever I use chrome but sad that I am only allowed to use mozilla
what should I do so that I can see the alert pop-up?
this is my code

<script>
function yoo(str)
   {
        var userID = str;
        alert(userID);
        $.ajax({
                    type: 'GET',
                    url: "ROOMS1.php",
                    data: {userID1:userID},
                    success: function(data)
                    {
                        alert("success!");

                    }
                });
    }
</script>

推荐答案

.ajax({
type:'GET',
url :ROOMS1.php,
数据:{userID1:userID},
成功:函数(数据)
{
alert(成功!);

}
});
}
< / script >
.ajax({ type: 'GET', url: "ROOMS1.php", data: {userID1:userID}, success: function(data) { alert("success!"); } }); } </script>


你好Mc Clinton Salamanes,



我经历过你的在通过firefox浏览器运行时,似乎ajax调用没有进入成功阶段。要检查确切的错误,您可以执行以下步骤: -



i)转到页面,单击F12,开发人员工具窗口将打开。 />
ii)转到控制台标签,然后点击调用此yoo方法的按钮。



注意:使用FireBug将增加了跟踪这类错误的优势。



现在,您可以在控制台窗口中查看错误的确切原因并开始修复。

希望这对你有帮助。
Hi Mc Clinton Salamanes,

I gone through your scenario and it seems like the ajax call is not coming to the success phase when run through the firefox browser. To check the exact error you can do the below steps :-

i) Go to the page click on the 'F12' and developer tool window will get opened.
ii) Go to 'Console' tab and now click on the button which calls this 'yoo' method.

NOTE : Use of FireBug will have added advantages to track these kind of errors.

Now you can see the exact cause of the error in the console window and start on its fix.
Hope this will definitely of help to you.


这篇关于如何在mozilla中看到警告弹出框?我的代码适用于chrome但不适用于mozilla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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