What event in FileField can I use to call a global controller (that holds the form.submit)?
What FileField event to use for form.submit()
I've tried the 'change' event but it's not working.
The log tells that the controller was called, the form.submit was triggered but the FILE is not sent in the server (as per PHP callback message).
It might be that the FileField's reference to the file is not in the form yet during 'change' event.
For the meantime, (to make it work), I made the 'change' event call a button.click() of a hidden button to submit the form.
Thanks in advance.
What FileField event to use for form.submit()
Aucun commentaire:
Enregistrer un commentaire