I don't know on which scope or what objects this, chat and pipe are. But
just to illustrate here is the simplest example

// JavaScript Document
// create our new APE client
var client = new APE.Client;

// load the APE client
client.load({
'domain': APE.Config.domain,
'server': APE.Config.server,
'channel': 'test',
'complete': function(ape){
// APE has finished loading so now we can do things

ape.addEvent("userJoin", function(user,pipe){
alert("user " + user.properties.name + " has join the channel");
})

ape.addEvent("userLeft", function(user,pipe){
alert("user " + user.properties.name + " has left the channel");
})

},
'scripts': APE.Config.scripts //Scripts to load for APE JSF
});
 On Jan 4, 2012 11:10 PM, "utan" <vcomputado...@gmail.com> wrote:

> I get undefined object on pipe.addEvent(); or this.addEvent(); or
> chat.addEvent(); , how do you call this even without having undefined
> in initialize: function() .. ?
>
> Thanks again..
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to ape-project@googlegroups.com
> To unsubscribe from this group, send email to
> ape-project+unsubscr...@googlegroups.com
> 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/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-project@googlegroups.com
To unsubscribe from this group, send email to
ape-project+unsubscr...@googlegroups.com
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/

Reply via email to