Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Intercept commands
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Beldar  
View profile  
 More options Feb 7, 8:04 am
From: Beldar <beldar....@gmail.com>
Date: Tue, 7 Feb 2012 05:04:29 -0800 (PST)
Local: Tues, Feb 7 2012 8:04 am
Subject: Intercept commands
Hi,

I'm creating something from the Chat demo, and I noticed when you
submit a message it just makes a pipe.send(msg) , but at the same time
it's declared this.onCmd('send', this.cmdSend), where the method
cmdSend writes the message to the chat window.

Ok so there're my questions:

1. The onCmd event occurs before the data is sent or after?

2. If the answer to the first question is before, it's possible to add
additional data to the message or modify it?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Beldar  
View profile  
 More options Feb 16, 2:43 pm
From: Beldar <beldar....@gmail.com>
Date: Thu, 16 Feb 2012 11:43:59 -0800 (PST)
Local: Thurs, Feb 16 2012 2:43 pm
Subject: Re: Intercept commands
Anyone have any thoughts about this?

On 7 feb, 14:04, Beldar <beldar....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ma liang  
View profile  
 More options Feb 16, 10:31 pm
From: ma liang <bigmali...@gmail.com>
Date: Fri, 17 Feb 2012 11:31:16 +0800
Local: Thurs, Feb 16 2012 10:31 pm
Subject: Re: [APE Project] Re: Intercept commands

2012/2/17 Beldar <beldar....@gmail.com>

> Anyone have any thoughts about this?

> On 7 feb, 14:04, Beldar <beldar....@gmail.com> wrote:
> > Hi,

> > I'm creating something from the Chat demo, and I noticed when you
> > submit a message it just makes a pipe.send(msg) , but at the same time
> > it's declared this.onCmd('send', this.cmdSend), where the method
> > cmdSend writes the message to the chat window.

> > Ok so there're my questions:

> > 1. The onCmd event occurs before the data is sent or after?

 Accord Request/Request.js's function send(), onCmd event fired before that
data is sent.

> > 2. If the answer to the first question is before, it's possible to add
> > additional data to the message or modify it?

> > Thanks!

Accord Request/Request.js's function parseCmd(),
message is passed to onCmd() by copied to evParams, so, you can't modify it.
But you can modify Request.js to do this.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »