any problem with the activity?

Hi, I know it sounds weird but the functionChannel_OnDataReceived() that used to work in my activity do not work at all now...
Is there anything with the server or am I cursed?
Bruno
[235 byte] By [alabama] at [2008-2-28]
# 1

Hi Bruno,

I just tried this and my activity did not work on my very first try, but it has worked on subsequent tries (using Channel_OnDataReceived()).

Perhaps you could close the activity window and try again. Or have you changed anything lately? Please let us know if that worked, or if you are still having issues...

Gruia

GruiaPitigoi-Aron-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 2
alabama wrote:
Hi, I know it sounds weird but the function Channel_OnDataReceived() that used to work in my activity do not work at all now...
Is there anything with the server or am I cursed?
Bruno

I'm using an activity with a bot made with the official SDK and it works without problems.

Have you set the window.onload=OnLoadEvent; defined the OnLoadEvent, notified the agent of the load and so?

I do something like this:

function Channel_OnDataReceived()
{
var data = window.external.Channel.Data;

// First command to receive from the Agent
if (data == "AGENT_READY")
{
Channel_OnRemoteAppLoaded();
agentIsReady = true;
return;
}

[...]
}

I launch the invitation to open activity, open it, the activity notifies the agent that it's ready, and the agent replies "I'm ready too" (that's when I call Channel_OnRemoteAppLoaded()).

My communication is working without problems on both directions, so maybe it's a problem of your code.

DiegoMu?oz at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 3
Hi Gruia,
I reinstalled Colloquis and MSN and everything is fine now...
It was quit weird !!!
Thanks for your help,
Bruno

alabama at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...

Windows Live Developer Forums

Site Classified