Question about listeners in 1.0 - Ext JS

本文探讨了从YUI库的事件监听器转换到ExtJS库的方法。具体介绍了如何将YUI中针对'keyword'输入框的'keyup'事件监听转换为ExtJS的等效实现。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I hope someone can help me out. I am trying to go from .40 to 1.0 and I can't seem to figure out how to convert the following code:

YAHOO.util.Event.on('keyword', 'keyup', callFunction);

It is just a listener that listens for a 'keyup' event in the 'keyword' textbox and calls 'callFunction' upon the event occurring.

Thanks in advance for the help
Reply With Quote
  #2  
Old 03-06-2007, 07:39 PM
DefaultRe: Question about listeners in 1.0

Quote:
Originally Posted by j555
I hope someone can help me out. I am trying to go from .40 to 1.0 and I can't seem to figure out how to convert the following code:

YAHOO.util.Event.on('keyword', 'keyup', callFunction);

It is just a listener that listens for a 'keyup' event in the 'keyword' textbox and calls 'callFunction' upon the event occurring.

Thanks in advance for the help
something like this should do the trick...I'm not sure about the keyup event though...
Ext.get("keyword").addListener('keyup', callFunction);
__________________
Ext readings for beginners | Ext manual's resources section | Ext documentation center | Ext Tutorials | Ext screencasts | Ext FAQs | Ext Forum Index | Various Debugging Tools for IE & Firefox

My Ext's Wiki user page
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值