Thank you Carl for your answer. Seems like you are the grand meister of ST:)
This may be a doumb question, but none the less; where shall i put your two functions StatusUpdated(event) and onMessageReceivedEvent?
What i do now is this (and a lot after that, but i think it is here i need to insert the functions):
// Log in
function loginUser() {
stproxy.login.loginByPassword(userID, password, stproxy.awareness.AVAILABLE, "I'm available", loggedInOK, loginFailed);
return true;
}
// When stproxy is ready, call the function
stproxy.addOnLoad(loginUser);
I do not want to go in and configure the EAR file if i do not have to:)
If i try to insert this line right after the stproxy.addOnLoad() nothing happen:
dojo.connect(stproxy.chat,'onMessageReceived', null, function(){alert("messageRecived");});
I still get a new chat window, but no alert.
Is there a way i can prevent the proxy to make any pop-ups at all, since i have to include the necessary in the web page itself?
Thank you for helping.
Sofus