[fpc-pascal] pas2js: registering jQuery Mobile event callback

Simon Ameis SAmeis.fpc at web.de
Wed Jul 17 23:09:41 CEST 2019


Hello all,

How do I register a Pascal method as callback function for an jQuery
Mobile callback?

In JavaScript I can use this syntax:

$("#elementid").on("pagehide", function(event, ui){ alert("Event fired");});

Is there any method to do this in Pascal without creating an external
class for the jQuery object $("#elementid")?

Regards
Simon Ameis



More information about the fpc-pascal mailing list