Hyperlink to call method in Web Client

Forum to discuss the Web client version of Servoy.

Hyperlink to call method in Web Client

Postby SteveInLA » Thu Mar 21, 2019 12:25 am

In the Smart Client, one could include a hyperlink in an HTML area that could call a local or global method in the solution like:
Code: Select all
<a href="javascript:myMethod()">Click here to launch Method</a>

This doesn't work in the Web Client. Is there an equivalent? I have searched but have not found anything.
Posts: 227
Joined: Thu Jul 29, 2004 12:00 am
Location: Los Angeles, CA

Re: Hyperlink to call method in Web Client

Postby steve1376656734 » Thu Mar 21, 2019 2:14 am

This should work exactly the same in the web client (we used it in our previous solution before we moved to NGClient) but you must make sure you have flagged the field with the TRUST_DATA_AS_HTML attribute. I will try to dig out the old solution tomorrow and paste some sample code for you.
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
Posts: 248
Joined: Fri Aug 16, 2013 2:38 pm
Location: Lanzarote

Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 2 guests