Jun 25, 2012, 5:51 PM
[CLOSED] TextArea client side events IE8 problem
Hi,
I have a TextArea control on the page where I'd like to listen for any client events associated with text changing. Here's the markup:
Thanks,
Vadym
I have a TextArea control on the page where I'd like to listen for any client events associated with text changing. Here's the markup:
<ext:TextArea ID="TextArea1" runat="server" DataIndex="Comments" AutoScroll="false">
<Listeners>
<SpecialKey Handler="if (e.getKey() === e.BACKSPACE) {
if(!this.readOnly) {
enableButtons(true);
}
else {
e.preventDefault();
}
}" />
<AfterRender Handler="this.el.dom.setAttribute('onKeydown','if(!this.readOnly){enableButtons(true);}');
this.el.dom.setAttribute('onPaste','if(!this.readOnly){enableButtons(true);}');
this.el.dom.setAttribute('onDrop','if(!this.readOnly){enableButtons(true);}');" />
</Listeners>
</ext:TextArea>
This works fine in IE9 but not in IE8. Could you suggest a workaround or a different solution to meet the requirements such that it becomes browser agnostic?Thanks,
Vadym
Last edited by Daniil; Jun 27, 2012 at 12:51 PM.
Reason: [CLOSED]