I am working on SignalR. Everything working fine in all browser except IE8. Here is my code.
<script src="~/Scripts/jquery.signalR-2.2.0.min.js"></script>
<script src="../../signalr/hubs"></script>
$(document).ready(function () {
var templateId = '@Model.TemplateId';
var importNotifier = $.connection.runImport;
importNotifier.client.sendMessage = function (data) {
UpdateChart(data);
};
$.connection.hub.start().done(init);
function init() {
importNotifier.server.import(templateId, $("#hdnServerName").val(), '@ViewBag.ServerUserName', '@ViewBag.ServerPassword', '@ViewBag.AuthenticationType', '@ViewBag.DatabaseName');
}
});
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 22 Sep 2015 07:39:12 UTC
Message: Expected identifier, string or number Line: 88 Char: 13 Code: 0 URI: http://localhost:8092/signalr/hubs
Message: Expected identifier Line: 279 Char: 39 Code: 0 URI: http://localhost:8092/Graph/Graph/?TemplateId=27&IsUse=0
I am not able to understand why it is not working. I tried to insert http://localhost:8092/signalr/hubs to browser and its allow me to download.