Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWFileUploader
#6
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.
Reply


Messages In This Thread
TIWFileUploader - by Mikey29 - 06-01-2018, 02:18 PM
RE: TIWFileUploader - by Jose Nilton Pace - 06-01-2018, 03:22 PM
RE: TIWFileUploader - by Mikey29 - 06-01-2018, 04:00 PM
RE: TIWFileUploader - by Mikey29 - 06-04-2018, 08:05 AM
RE: TIWFileUploader - by Ian_F1 - 02-26-2019, 05:27 PM
RE: TIWFileUploader - by kudzu - 02-26-2019, 05:43 PM
RE: TIWFileUploader - by Ian_F1 - 02-27-2019, 09:10 AM
RE: TIWFileUploader - by kudzu - 02-27-2019, 02:25 PM
RE: TIWFileUploader - by Jose Nilton Pace - 02-27-2019, 02:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)