![]() |
IWSignaturePad demo generates an error - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: IWSignaturePad demo generates an error (/thread-2811.html) |
IWSignaturePad demo generates an error - jeroen.rottink - 07-27-2022 Hi Alexandre, Tested IWSignaturePad for the first time but see an DevTools console error. Code: (index):53 Uncaught TypeError: Cannot read properties of null (reading 'getContext') The property HTMLName for the control is empty in TIWCustomCanvas.AddContext() when called from TIWCustomCanvas.InitControl() Tested with IW15.2.64 running Chrome. Update: Also when using the upload button on a 'big or complex' signature, the exception EIdReadLnMaxLineLengthExceeded is raised. RE: IWSignaturePad demo generates an error - Alexandre Machado - 07-28-2022 Thanks for reporting this. The JS error has been fixed, and the Indy issue needs to be configured accordingly: program IWSignaturePad; uses IWRtlFix, IWStart, InIOHandler, // <- add this unit Unit27 in 'Unit27.pas' {IWForm27: TIWAppForm}, ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase}, UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: TIWUserSessionBase}; {$R *.res} begin IdMaxLineLengthDefault := 128 * 1024; // <- Increase to something like 64 or 128 kb TIWStart.Execute(True); end. |