Click here to Skip to main content
15,914,416 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Way cool Space Engineering Of The Day. Pin
Mark_Wallace23-Mar-17 11:00
Mark_Wallace23-Mar-17 11:00 
GeneralIT'S ALIVE!!! IT'S ALIVE!!! PinPopular
Kevin Marois23-Mar-17 6:41
professionalKevin Marois23-Mar-17 6:41 
PraiseRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Slacker00723-Mar-17 6:54
professionalSlacker00723-Mar-17 6:54 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
User 1013254623-Mar-17 6:58
User 1013254623-Mar-17 6:58 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Kevin Marois23-Mar-17 7:03
professionalKevin Marois23-Mar-17 7:03 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
User 1013254623-Mar-17 7:06
User 1013254623-Mar-17 7:06 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Kevin Marois23-Mar-17 7:13
professionalKevin Marois23-Mar-17 7:13 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
User 1013254623-Mar-17 7:29
User 1013254623-Mar-17 7:29 
As I say, I'm not familiar with SignalR but this code looks like a standard client->server jQuery ajax call (i.e. not SignalR)..
var searchUrl = "Index/GetData";                // <== I HAD "Home/GetData"

$.ajax({
    url: searchUrl,
    type: "POST",
    success: function (data) {
        $("#divData").html(data);
    }
});
This is a single, asynchronous call to the server initiated from the client (web browser).

Now I'm just taking all this from the QuickStart Persistent Connections · SignalR/SignalR Wiki · GitHub website..

For SignalR to work (i.e. keep constantly streaming data one way or another) it looks like you need to add the SignalR client side library to your page:
<script src="Scripts/jquery.signalR-1.1.1.min.js" type="text/javascript"></script> 
And call your server like this:
$(function () {
    var connection = $.connection('/echo');

    connection.received(function (data) {
        $('#messages').append('<li>' + data + '</li>');
    });

    connection.start().done(function() { 
        $("#broadcast").click(function () {
            connection.send($('#msg').val());
        });
    });
});
One way to tell might be to put a breakpoint in either you client side or server side code and see if data is constantly being sent.
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.


modified 31-Aug-21 21:01pm.

GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Kevin Marois23-Mar-17 7:22
professionalKevin Marois23-Mar-17 7:22 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
User 1013254623-Mar-17 7:30
User 1013254623-Mar-17 7:30 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Sander Rossel23-Mar-17 21:55
professionalSander Rossel23-Mar-17 21:55 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Kevin Marois24-Mar-17 6:08
professionalKevin Marois24-Mar-17 6:08 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
ZurdoDev23-Mar-17 7:42
professionalZurdoDev23-Mar-17 7:42 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Kevin Marois23-Mar-17 8:06
professionalKevin Marois23-Mar-17 8:06 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
ZurdoDev23-Mar-17 8:09
professionalZurdoDev23-Mar-17 8:09 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Kevin Marois23-Mar-17 8:16
professionalKevin Marois23-Mar-17 8:16 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
BillWoodruff23-Mar-17 8:41
professionalBillWoodruff23-Mar-17 8:41 
GeneralRe: IT'S ALIVE!!! IT'S ALIVE!!! Pin
Mark_Wallace23-Mar-17 11:02
Mark_Wallace23-Mar-17 11:02 
GeneralSOTD Pin
Tim Carmichael23-Mar-17 6:37
Tim Carmichael23-Mar-17 6:37 
JokeRe: SOTD Pin
Kyle Moyer23-Mar-17 9:18
Kyle Moyer23-Mar-17 9:18 
GeneralRe: SOTD Pin
Mark_Wallace23-Mar-17 11:42
Mark_Wallace23-Mar-17 11:42 
GeneralAPOD Pin
R. Giskard Reventlov23-Mar-17 4:41
R. Giskard Reventlov23-Mar-17 4:41 
GeneralRe: APOD Pin
glennPattonWork323-Mar-17 5:53
professionalglennPattonWork323-Mar-17 5:53 
GeneralBest 404 ever Pin
littleGreenDude23-Mar-17 3:43
littleGreenDude23-Mar-17 3:43 
GeneralRe: Best 404 ever Pin
Johnny J.23-Mar-17 3:45
professionalJohnny J.23-Mar-17 3:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.