This is a JavaScript issue. JS is a horrible language and this particular part has caused me a LOT of bugs in 17 which often take a long time to track down.
In Delphi these are the same:
xObj.MyMethod();
xObj.MyMethod;
In JS they are NOT, yet both are valid syntax. In JS these are BOTH valid, but are DIFFERENT:
IWFileUploader1.selectFile();
IWFileUploader1.selectFile;
IWFileUploader1.selectFile();
Use this one. It calls the method.
IWFileUploader1.selectFile;
This one does NOT call the method. It instead returns the method "pointer". But since its not being assigned, JS just retrieves the "pointer" and then immediately discards it.
In Delphi these are the same:
xObj.MyMethod();
xObj.MyMethod;
In JS they are NOT, yet both are valid syntax. In JS these are BOTH valid, but are DIFFERENT:
IWFileUploader1.selectFile();
IWFileUploader1.selectFile;
IWFileUploader1.selectFile();
Use this one. It calls the method.
IWFileUploader1.selectFile;
This one does NOT call the method. It instead returns the method "pointer". But since its not being assigned, JS just retrieves the "pointer" and then immediately discards it.