开发者

Javascript disable/enable event and $addhandler

I am fairly new to JScript and I am looking for a way to subscribe to the event when a textbox is d开发者_StackOverflowisabled or enabled. I am creating a AJAX Extender Control and I am subscribing through the JScript:

$addhandler(textbox, 'EventName', Function);

I have it working for "click", "focus" and "blur", but I'd like to get enable disable working. Is there an exhaustive list of events that can be hooked into out there? I've tried googling everything I know.


I don't think there's any simple solution to this.

Firstly, there are two properties for form elements which you may want to look at: disabled and readonly. They both behave differently.

Secondly, there is no specific browser event that will trigger when those properties are changed. PPK has a good list of events and their browser support. The closest you can come is something like the funky DOMAttrModified or DOMSubtreeModified - but I don't think these work across all browsers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜