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

2019-07-17 Thread Michael Van Canneyt
On Thu, 18 Jul 2019, Simon Ameis wrote: Am 17.07.2019 um 23:46 schrieb Michael Van Canneyt: Several ways, but TJSOBject(JQuery('#elementid'))['onhide']:=@yourfunction;  should work. Thanks for the hint to the libjquery unit. This helps to resolve $('#elementid'). However I couldn't find an

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

2019-07-17 Thread Simon Ameis
Am 17.07.2019 um 23:46 schrieb Michael Van Canneyt: > Several ways, but > TJSOBject(JQuery('#elementid'))['onhide']:=@yourfunction; >  should work. Thanks for the hint to the libjquery unit. This helps to resolve $('#elementid'). However I couldn't find any information on how to access the non-st

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

2019-07-17 Thread Michael Van Canneyt
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 Pasca

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

2019-07-17 Thread Simon Ameis
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