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

Re: [fpc-pascal] Heavy heap fragmentation issue

2019-07-17 Thread Martok
>>> Try compiling the heap manager with "-dBESTMATCH". This makes it a >>> bit slower but greatly reduces fragmentation. > I think so. I usually set it when I "make all OPT=-dBESTMATCH" the compiler. Thanks. BESTMATCH is only marginally better for the test case, but is much slower (i.e. fully boot