weixin_33713707 2011-01-25 12:08 采纳率: 0%
浏览 158

IE浏览器不支持xmlhttp

xmlhttp not supporting in IE ,actually i had created one facebook app by which users can play game with each other randomly,problem is when i want to test it, i login in my facebook userid in firefox,and i login with my brother facebook id in chrome but they are connecting to each other,do you think that it beacuse of same ip address we are not connecting OR it is not creating xmlhttprequest object for IE AND CHROME....

function GetXmlHttpObject() { var xmlHttp = null;

            try
                {
                // Firefox, Opera 8.0+, Safari
                xmlHttp = new XMLHttpRequest();
                }
            catch (e)
                {
                //Internet Explorer
                try
                    {
                    xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
                    }
                catch (e)
                    {

                        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

                    }
                }

            return xmlHttp;
            }
  • 写回答

1条回答 默认 最新

  • weixin_33744141 2011-01-25 12:28
    关注

    You need to post the code you are trying to run, we can't help you based on this vague description of your problem.

    One thing I will say is check for trailing commas at the end of object lists, this is the #1 thing that will break javascript in IE. For example this will break IE but not Firefox/Chrome because of the comma at the end:

    variable = ['one', 'two', 'three', ]
    
    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突