Hi there.
These functions appear to be good. How do I call it?
I am trying to capture send event at server. When ever server receives
send event, a function is called
Ape.registerHookCmd("send", function(params, info) {
Ape.log('Send Hook');
});
This hook is firing.
Now how do i dump params, info
If i have to look at code for registerHookCmd where do i look in
source. Do i look in module/spidermonkey
Thanx
On May 24, 2:26 am, Nicolas Trani <[email protected]> wrote:
> Hi, i posted on the wiki two function var_dump and var_export (like php
> one). This might interest you :
>
> http://www.ape-project.org/wiki/index.php/Var_dump_var_export
>
> Regards.
>
> On 23/05/2010 21:35, Manas B wrote:
>
>
>
> > I have tred Ape.log(JSON.encode(params));
> > It throws an error
> > TypeError: JSON.encode is not a function
>
> > On May 24, 12:30 am, Manas B<[email protected]> wrote:
>
> >> Hi there,
> >> I been playing with APE for some time and i find some of the documents
> >> are out dated. Specially the objects which carry the data. Things have
> >> changed from 0.9 to 1.0.
>
> >> Thankfully, at Client side I can dump the objects in console.log and
> >> analyse that. I have also created a page where i will be updating my
> >> finding. That will help other to understand object easily.
>
> >> In order to dump data at server side one has to run ape in non daemon
> >> mode. That way Ape.log will spit out the content on the screen.
>
> >> As i understand when you create a hook / cmd certain objects are
> >> passed to the function which you can play with. I am havng problems
> >> in dumping objects at server side.
>
> >> My problem is when i dump an object it just says object. As i
> >> understand i need to jsonise the data at server side. how do you do
> >> that?
>
> >> Please help
>
> >> --
> >> 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
> >> athttp://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/
>
> --
> Nicolas Trani - Web engineer
> Weelya - Improve the web
> 32 rue du faubourg boutonnet
> 34090 Montpellierhttp://www.weelya.comhttp://www.ape-project.org
>
> --
> 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
> athttp://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 [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/