Fork me on GitHub

SignalR 在IE中无法工作 - Internet Explorer

运行基于SignalR的超线程上载器的代码,发现SignalR 在IE 9上居然没法工作了,提示如下:

image

提示很明显,需要json2.js的支持。

使用Nuget 搜索json2.js 并安装:

image

在引用之前引用json2.min.js

   <script src="Scripts/json2.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery.signalR-1.0.0-rc1.js" type="text/javascript"></script>

 

重新运行项目,问题解决了。

Real Time Commenting using SignalR and XSLT

SignalR, Quartz.Net and ASP.Net: part 2 the webclient

MVC API 实时日志查看功能

Building Web Apps with SignalR, Part 1

posted @ 2013-03-08 22:24  张善友  阅读(3350)  评论(2编辑  收藏  举报