If your button is an qx button, use .fireEvent("execute"). If you try to trigger a native browse input element, this could be tricky. Sure you can dispatch an user click event by code, but on such sensitive interfaces to the file system, most browser will restrict that. So for browser they don't permit to open browse dialog by code, you can trick the system by overleying your text field with an native input field and just make it transparent. But the user has to click any way.
Gruß Mustafa Sak Applications & Integration 1&1 Internet AG | Ernst-Frey-Straße 10 | 76135 Karlsruhe | Germany Phone: +49 721 91374-6977 E-Mail: mustafa....@1und1.de | Web: www.1und1.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 6484 Vorstand: Frank Einhellinger, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Uwe Lamnek Aufsichtsratsvorsitzender: Michael Scheeren Member of United Internet -------- Ursprüngliche Nachricht -------- Von: paragasu <parag...@gmail.com> Gesendet: Sunday, August 2, 2015 02:31 PM An: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> Betreff: [qooxdoo-devel] make focus event to make the button clicked I have a textfield and a button next to it. clicking on the button will popup file chooser (to upload file). is it possible to trigger the user click event of the button when the user focus on the textfield? Regards, Paragasu
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel