PDA

View Full Version : applyToMarkup getting the Methods but not the Events



creepi
26 Feb 2010, 5:31 AM
Hey there,

got a little problem,
i have an Ext.form.TextField and using applyToMarkup() method to set it on a normal HTML input field which is generated by my api. So i only got its name.
The problem is the HTML Input element only inherits the methods but not the Events.

Heres the code:


this.item_field = new Ext.form.Textfield({
hidden: true,
enableKeyEvents: true
});

this.item_field.applyToMarkup(Ext.get('captcha_response_field'));

console.log(this.item_field.getValue());

The console.log will return the Value of the HTML input, but i am not able to handle a event on the HTML element ? Sth. linke on Enter do something

Thx for help