Atozed Forums

Full Version: JS calling IW Async event
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way where a JS can call an Async event in IW?
(10-04-2023, 09:18 PM)mhammady Wrote: [ -> ]Is there a way where a JS can call an Async event in IW?

You mean button async click this kind of async event? if yes
you can try to use
Code:
ajaxCall("btnAdd.DoOnAsyncClick");
ajaxCall("btnAdd.DoOnAsyncClick", "key=12"); //To pass params to the event, it can be access with EventParams(TStringList)
ajaxCall("btnAdd.DoOnAsyncClick", null, true); //third params is to activate async lock (default is undefined > false)
in your JS
This is exactly what I’m looking for. JS calling Async button click.
Thank you so much, I shall try it tomorrow…