I am using SignalR and I can't get a C# command to call the printinitial JavaScript function. I have a similar example that works fine. When debugging it does step on this. I've been scratching my head for hours, please help me.
Here are the two functions, what could it be?
C#.net :
public void register(string name)
{
int myplayernumber = -1;
A_client.ConnectionId = Context.ConnectionId;
A_client.Name = name;
ClientList.Add(A_client);
if (integer == 0)
{
myplayernumber = 1;
integer = integer + 1;
}
else if (integer == 1)
{
Clients.Client(ClientList[0].ConnectionId).printinitial();
myplayernumber = 2;
}
if (myplayernumber == 2)
{
Clients.Client(ClientList[1].ConnectionId).printinitial();
}
}
HTML / JavaScript / JQuery
chat.client.printinital = function ()
{
$("#turn").html("print_this");
};
Thank you,
Josheir