[Pas2js] htmlwidget in pas2j 2.2.0: pas.JS.isUndefined is not a function

Luca Olivetti luca at ventoso.org
Mon Aug 29 13:39:19 CEST 2022

As per the subject, I'm using pas2js 2.2.0 with fpc 3.2.2 and lazarus 2.2.2.

Since I had problems with Pas2JS_Widget, I'm now back to the basics 
following this article:


and while the first method (page 12, plain javascript classes) works, if 
I try to use the second one (using the httpwidget unit, not the 
webwidget one as the article says) I get this error in firefox:

Uncaught TypeError: pas.JS.isUndefined is not a function
     EventEntry webwidget.pas:2640
     cb rtl.js:256
     cb rtl.js:256
     HookupEvent webwidget.pas:2665
     AddEvent webwidget.pas:2690
     SetHTMLEvent webwidget.pas:2477
     DoRun login.lpr:27
     Run custapp.pas:206
     $main login.lpr:62
     run rtl.js:141
     <anonymous> login.html:51


More information about the Pas2js mailing list