Thanks for your quick reply,

I'm trying to expand the functionality of the origional chat demo.
I created a new server command WHOISONLINE which is responding to the
client.

However, onRaw does not pick this up, how does the client
differentiate the different types of raw? For example the recieved
message and the raw sent by my server module.

On Aug 5, 1:53 pm, Nicolas Trani <[email protected]> wrote:
> Hi,
>
> To intercept what APE server send back to the client use the methode
> addEvent / onCmd / onRaw
>
> if you want to intercept the login on special event exist : "init"
>
> core.addEvent('init', function() { alert('The client is connected'); });
>
> you can intercept raw (data received from server) with ape.onRaw('data',
> function(data) {console.log(datas)});
>
> For more sample check the demo Shoutbox and Chat
>
> Regards
>
> On Wed, 5 Aug 2009 08:13:25 -0700 (PDT), Andy <[email protected]>
> wrote:
>
>
>
>
>
> > Hi, I'm trying to recieve the response from post_raw. I can see the
> > response from the server through firebug, but cannot seem to capture
> > the response.
>
> > I have tried to play around with the call back, but can not get it to
> >"  call any functions.
>
> > core.request('WHOISONLINE', friendList, {callback:function(){alert
> > ("test");}});
> > The alert dosn't get called in this case,
>
> > But
> > core.request('WHOISONLINE', friendList, {callback:alert("test")});
> > works.
>
> > Can someone please provide an example on recieving response from
> > post_raw?
>
> > Thanks,- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to