Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12955
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
YUI Event and sending params to callbackfunction   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages | View Threaded Sort by Date v  
#45833 From: "valentin_jacquemin" <jacqueminv@...>
Date: Mon Mar 2, 2009 10:52 am
Subject: Re: YUI Event and sending params to callbackfunction
valentin_jac...
Send Email Send Email
 
Hello,

Yes it is possible but you  missused the function. Here is what the doc  states for the parameters:
el <String|HTMLElement|Array|NodeListAn id, an element reference, or a collection of ids and/or elements to assign the listener to.
sType <StringThe type of event to append
fn <FunctionThe method the event invokes
obj <ObjectAn arbitrary object that will be passed as a parameter to the handler
overrideContext <Boolean|objectIf true, the obj passed in becomes the execution context of the listener. If an object, this object becomes the execution context.

So in your case here is what would be the result:
YAHOO.util.Event.on(endtweetforminput, 'keyup',CharChange, {count: <your value>, tweet: <your value>}, this, true);

Hope it will be helpfull.

Valentin Jacquemin
--- In ydn-javascript@yahoogroups.com, "ragtek_ragga" <ragtek_ragga@...> wrote:
>
> Is it possible to send params like i'm trying here:
>
> YAHOO.util.Event.on(sendtweetforminput, 'keyup',
> this.CharChange('twittercharcount', 'twitter_tweet'), this, true);
>
>
> ATM its not working for me, but don't know if it's because of this, or
> i have an other error in the code
>

#45832 From: "ragtek_ragga" <ragtek_ragga@...>
Date: Mon Mar 2, 2009 8:44 am
Subject: YUI Event and sending params to callbackfunction
ragtek_ragga
Send Email Send Email
 
Is it possible to send params like i'm trying here:

YAHOO.util.Event.on(sendtweetforminput, 'keyup',
this.CharChange('twittercharcount', 'twitter_tweet'), this, true);


ATM its not working for me, but don't know if it's because of this, or
i have an other error in the code




 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help