[fpc-pascal] pas2js: registering jQuery Mobile event callback
Simon Ameis
SAmeis.fpc at web.de
Thu Jul 18 00:08:46 CEST 2019
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-standard events via attributes. Thus I create an external class just
for the "on" method.
More information about the fpc-pascal
mailing list