不同IE8版本中Web应用程序的不同行为 [英] Different behavior of web app in different IE8 versions

查看:161
本文介绍了不同IE8版本中Web应用程序的不同行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临着不同IE8版本中同一个Web应用程序的不同行为的奇怪问题。一个版本就像IE 8 CO(企业管理员),即版本A,另一个版本是正常的IE 8版本。即版本B
问题出在版本A中,我在onload事件上调用一个cgi,它负责在板上闪存文件。但是在vA中,它根本没有被调用,我可以从apache web服务器的日志以及内部日志记录方法中找到它。
如果是vB,它工作正常并按预期进行。

I am facing a strange issue of different behavior of a same web application in different IE8 versions.One version is like IE 8 CO ( corporate administrator ) i.e version A and another is normal IE 8 version. i.e version B The issue is in version A, I am calling one cgi on the onload event which is responsible to flash a file on a board. But in vA it is not getting called at all which I can figure out from the logs of apache web server and also from internal logging methods. In case of vB, it is working fine and doing as expected.

你知道可能的原因是什么?

Do you know what may be the [possible cause of this ?

注意 - 两个系统/环境都是相同的只是版本的一个区别。
此应用程序在Firefox中也很完美; y。

Note - Both systems/Environment is are the same just one difference is of versions. Also this application is working in Firefox perfect;y.

请帮助我,因为我已经花了很多时间在这上面并且搜索了很多但是甚至找不到同样的原因。
除非我找不到我无法进行项目的方式。

Please help me on this as I have passed very much time on this and also searched a lot but not found even the cause of the same. Unless I can't find the way I can't proceed in my project.

我认为IE8的vA(公司管理员)可能会被拒绝出于安全原因进行文件传输???。

I think that the vA (corporate administrator ) of IE8 may be denied for the file transfer for security reasons ???.

提前多多感谢...

推荐答案

我找到了解决方案...... !!!
IE8中的一个安全设置导致了这个问题。
就像 - 工具 - > Internet选项 - >高级 - >安全 - >启用Native XMLHttp支持。当它被禁用时,IE无法将XHR发送到服务器,因此它被挂起。
我通过使用以下代码解决了这个问题:

I found the solution...!!! It was one security setting in IE8 that caused this problem. It was like - Tools -> Internet Options -> Advance -> security -> "Enable Native XMLHttp Support".When it is disabled then IE was not able to send XHR to server so it was hanged. I resolved this by using the following code :

 function getXMLHttpRequest() {
        var xmlHttpReq;
        if (window.XMLHttpRequest) {
            xmlHttpReq = new window.XMLHttpRequest;
        }
//    Instead of using else if(window.ActiveXObject("Microsoft.XMLHTTP")){
//        xmlHttpReq = new window.ActiveXObject("Microsoft.XMLHTTP");
//}
//I used this :-
        else {
            try {
                xmlHttpReq = new window.ActiveXObject("Microsoft.XMLHTTP");
            }
            catch(ex) {
                alert('Exception in initializing the XMLHttpRequest object '+ex.toString());
                return null;
            }
        }
        return xmlHttpReq;
    }

这篇关于不同IE8版本中Web应用程序的不同行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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