Hello. I want to enable / disable the event "form.Onkeypress". I have put this:
Form.Script ==> 'var RUN = false;' Form.ExtEvents.1-Ext.form.FormPanel ==> function form.Onkeypress(sender, key) { if (RUN == false) { sender.preventDefault(); }; } And it works. But not like putting 'RUN = True;'. ¿Someone can help me? As you see, my knowledge of JavaScript are very low. Thank you.
===========================================================
Hola. Yo quiero habilitar/deshabilitar el evento "form.Onkeypress". Yo he puesto esto: Form.Script ==> 'var RUN = false;' Form.ExtEvents.1-Ext.form.FormPanel ==> function form.Onkeypress(sender, key) { if (RUN == false) { sender.preventDefault(); }; } Y funciona. Pero no se como poner 'RUN = True;'. ¿¿Alguien me puede ayudar?? Como vosotros veis, mis conocimientos de JavaScript son muy bajos.
Gracias.