event.params( name, value )

0 views
Skip to first unread message

Jrad

unread,
Jul 24, 2010, 9:29:11 AM7/24/10
to jquery-claypool
I think when forwarding control between controllers (using
event.c( "#nextController" ) ), it is very usefull to be able to set
new parameters in event. something like:

event.params( 'newForwardParam', valueObj );

chris thatcher

unread,
Jul 25, 2010, 12:31:49 PM7/25/10
to jquery-...@googlegroups.com
Nice, I like this too.  One issue is that I've tried to keep event.param functionally readonly.  What I'd like to do is allow an optional additional parameters on event.c so that a new parameter mapping can be specifed.  For example.

//This would add or override these parameters for '#nextController'
event.c('#nextController', {
   abc:123,
   def: 456
});

Is this a satisfactory approach for you?

Thatcher

PS.  Thank you for your feedback, these feature requests are great.


--
You received this message because you are subscribed to the Google Groups "jquery-claypool" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to jquery-claypo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jquery-claypool?hl=en.




--
Christopher Thatcher

Jrad

unread,
Jul 30, 2010, 11:12:05 AM7/30/10
to jquery-claypool
Yeah! Thats nice. :)

Thank you Chris.

On Jul 25, 8:31 pm, chris thatcher <thatcher.christop...@gmail.com>
wrote:
> Nice, I like this too.  One issue is that I've tried to keep event.param
> functionally readonly.  What I'd like to do is allow an optional additional
> parameters on event.c so that a new parameter mapping can be specifed.  For
> example.
>
> //This would add or override these parameters for '#nextController'
> event.c('#nextController', {
>    abc:123,
>    def: 456
>
> });
>
> Is this a satisfactory approach for you?
>
> Thatcher
>
> PS.  Thank you for your feedback, these feature requests are great.
>
>
>
>
>
> On Sat, Jul 24, 2010 at 9:29 AM, Jrad <behr...@gmail.com> wrote:
> > I think when forwarding control between controllers (using
> > event.c( "#nextController" ) ), it is very usefull to be able to set
> > new parameters in event. something like:
>
> > event.params( 'newForwardParam', valueObj );
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jquery-claypool" group.
> > To post to this group, send email to jquery-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jquery-claypo...@googlegroups.com<jquery-claypool%2Bunsubscribe@ googlegroups.com>
> > .

chris thatcher

unread,
Aug 3, 2010, 1:54:05 PM8/3/10
to jquery-...@googlegroups.com
Just wanted to let you know this is in trunk and tag 1.1.11

event.c("#fooController", { abc: 123})

and

event.c("#fooController.action", { abc: 123})

will extend the event.params() map with the extra dictionary so that

event.params('abc') is 123 when the event is handed to the fooController.

Thatcher

To unsubscribe from this group, send email to jquery-claypo...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/jquery-claypool?hl=en.




--
Christopher Thatcher

Jrad

unread,
Aug 3, 2010, 2:02:31 PM8/3/10
to jquery-claypool
Thank you for your information.


On Aug 3, 9:54 pm, chris thatcher <thatcher.christop...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages