Javi Posted February 6, 2013 Share Posted February 6, 2013 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. Quote Link to comment Share on other sites More sharing options...
Javi Posted February 25, 2013 Author Share Posted February 25, 2013 Me autocontesto... UniApplication.UniSession.AddJS('RUN = false'); Más fácil imposible Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.