upload file on picturebox doubleclick

0
0

Hi,

On a button, I’m using

this.addListener("execute", function(e){this.upload1.upload();});

What event instead of "execute" can I use for double-click on a PictureBox?
  • You must to post comments
0
0

Hi Adrian,

You can use something like this in the InitScript of the PictureBox to process the upload on the client:

this.addListener("dblclick", function(e){App.MainPage.upload1.upload();});

Pretty much all Wisej controls are derived from qx.ui.core.widget in the Qooxdoo framework. You can find a list of events here: https://qooxdoo.org/qxl.apiviewer/#qx.ui.core.Widget

 

Or, you can trigger an upload from the server:

private void pictureBox1_DoubleClick(object sender, EventArgs e)
 {
 this.upload1.UploadFiles();
 }

 

HTH,

Levie

  • Adrian Zagar
    At least in the past versions, triggering the upload from the server wasn’t working on some browsers. Is it fix now?
  • Levie (ITG)
    Seems to be working on IE, FF, Chrome, and Edge with 2.2.52. Which version didn’t work?
  • Adrian Zagar
    I tried now, and you can add Opera on the working side. I don’t remember the browser/version, but it’s here on forum and the InitScript workaround was given by Luca. Latr edit: I searched the forum and I quote from Luca (3 july 2020): “You cannot call u.UploadFiles() in Firefox, it will block the event. You need to call the event on the client side.”
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.