SignalR聊天应用程序是否与IE和Firefox不兼容? [英] Is SignalR chat application is not compatible with IE and firefox?

查看:203
本文介绍了SignalR聊天应用程序是否与IE和Firefox不兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jquery和asp.net使用signalR

阅读了一些教程之后创建了一个聊天室,在我的聊天室完全创建之后,我编译并测试它进入浏览器我将列出它们/>
1.在Chrome浏览器中,我的聊天应用程序正常运行,所有功能都按照我的要求运行但有一个限制是,当我尝试添加另一个时,我无法在第五个用户之后向应用程序添加超过5个客户端在房间里的用户然后该页面没有响应,它只是加载页面。

2.在Firefox浏览器中我的聊天应用程序已加载但是SignalR功能无法正常工作且没有firefox抛出的错误消息,所以很难猜出是什么问题

3.在Opera浏览器中,我的聊天应用程序工作得很好,我在聊天室中添加了大约15个用户,没有问题像chrome

4.在IE聊天应用程序中加载了3个错误而应用程序不是工作..

提到IE的错误描述

I have create a chatroom using after reading some tutorials using jquery and asp.net using signalR
and after my chatroom is created completely , i complied and tested it into browser i will list them
1. In Chrome browser my chat application is working properly with all functions working as i required but with 1 limitation is that i could not add more than 5 clients to the application after 5th user when i tried to add another user in the room then that page was just not responding and it was only loading the page.
2. In Firefox browser my chat application is loaded but SignalR function is not working and no there is no error message thrown by firefox, so hard to guess what is the issue
3. In Opera browser my chat application is working totally fine and i added some 15 users to chatroom there was no problem like chrome
4. In IE chat application is loaded with 3 errors and application is not working..
error description of IE is mentioned

1.SignalR: No JSON parser found.Please ensure json2.js is referenced before the SignalR.js file
2.SignalR is not loaded.Please ensure jquery.signalR.x.js is referenced before ~/signalr/hubs.
3.$.connection.chaHub is null or not an object







1.为什么chrome不允许超过5个客户在聊天室中没有歌剧这样的问题

2。较低版本的firefox 6和IE8不支持singalR吗?

那么PLZ是否有任何人可以帮我解决上述问题。

提前使用Thanx




1. Why chrome is not allowing more than 5 clients in a chatroom where there is no such problem with opera
2. Is singalR not supported with lower version of firefox 6 and IE8 ?
So plz is there any1 who can help me with my above queries .
Thanx in advance

推荐答案

.connection.chaHub null 对象
.connection.chaHub is null or not an object







1.为什么chrome不允许超过5个客户在一个聊天室里没有歌剧这样的问题

2.是不是低级版本支持singalR火狐6和IE8?

所以PLZ有任何人可以帮助我解决上述问题。

提前使用Thanx




1. Why chrome is not allowing more than 5 clients in a chatroom where there is no such problem with opera
2. Is singalR not supported with lower version of firefox 6 and IE8 ?
So plz is there any1 who can help me with my above queries .
Thanx in advance


问题4 ,我遇到了与IE9类似的问题,似乎IE9及以下版本需要JSON解析器。



我下载了json2.js并在之前添加了javascript参考signalR.js,一切正常。



https://cdnjs.cloudflare.com/ajax/libs/json2/20150503/json2.js [ ^ ]
For question 4, I'm encountered similar issue with IE9 and seems like the JSON parser is required for IE9 and below.

I downloaded the json2.js and add javascript reference before the signalR.js and everything works all right.

https://cdnjs.cloudflare.com/ajax/libs/json2/20150503/json2.js[^]


这篇关于SignalR聊天应用程序是否与IE和Firefox不兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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