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

Michael Van Canneyt michael at freepascal.org
Wed Jul 17 23:46:27 CEST 2019

On Wed, 17 Jul 2019, Simon Ameis wrote:

> 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")?

Several ways, but 
  should work.


More information about the fpc-pascal mailing list