Hi Pablo,
The script is the default chat demo..
So I am trying to listen and to fire event in the Client side
initialize: function(){}
Where the Pipe var should be defined but it is not..
this is a piece of the code so far :
APE.Chat = new Class({
Extends: APE.Client,
Implements: Options,
options:{
container: null,
logs_limit: 10,
container: document.body
},
initialize: function(options){
this.setOptions(options);
this.els = {};
this.currentPipe = null;
this.utanChatloaded = false;
this.usernick = null;
this.userPvPipe = null;
this.userPubid = null;
this.userInfo = Array;
this.logging = true;
this.onRaw('data', this.rawData);
this.onCmd('send', this.cmdSend);
this.onError('004', this.reset);
this.onError('006', this.promptName);
this.onError('007', this.promptName);
this.addEvent('load', this.start);
this.addEvent('ready', this.createChat);
this.addEvent('uniPipeCreate', this.setPipeName);
this.addEvent('uniPipeCreate', this.createPipe);
this.addEvent('multiPipeCreate', this.createPipe);
this.addEvent('userJoin', this.createUser);
//this.addEvent('userJoin', function(user, pipe)
{console.log(user);console.log(pipe);});
this.addEvent('userJoin', this.userJoin);
this.addEvent('userLeft', this.timeoutUser);
//this.addEvent('userLeft', function(user, pipe){alert('event
fired');});
//this.pipe.addEvent('disconnect', function(){alert('disconnect
fired');});//this.timeoutUser);
window.onload = function(){
//chat.quitUser();
}
/*this.onRaw('userQuit', function(Data) {
//console.log(Data);
//this.quitMsg(userData.data.user);
alert('disconnect fired');
});*/
/*this.onCmd('quitUserCmd', function(user, pipe) {
console.log(pipe);
});*/
},
Thanks again for your kind help on this matter.
regards.
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/