Menu

javascript before upload starts

Help
Michael
2011-11-23
2012-09-21
  • Michael

    Michael - 2011-11-23

    Is there any possibility to tell the applet to call a javascript after the
    upload button is pressed but befor the upload starts ?

    I would like to disable some other buttons on the web page to avoid any
    interrupt of the upload in progress.

    Michael

     
  • Etienne

    Etienne - 2011-11-26

    There is currently no way to do this.

    I guess a javascript API is a real need for a lot of people.
    Noted in the TODO list.

    Etienne

     
  • Michael

    Michael - 2011-11-26

    Another way to do it would be to ask the applet by javascript if the queue is
    empty and there is no upload in progress (means the applet got the 'SUCCESS'
    message from server). Do you see a way to do this ?

     
  • Etienne

    Etienne - 2011-11-28

    You mean that the javascript would do polling to the applet, to query the
    current upload state ?

    Hum, would probably consume lots of CPU. More complex to manage ... and no
    current support on the applet.
    Some specific hook point seems better.

    Etienne

     

Log in to post a comment.

MongoDB Logo MongoDB