Atozed Forums
JS calling IW Async event - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: JS calling IW Async event (/thread-3544.html)



JS calling IW Async event - mhammady - 10-04-2023

Is there a way where a JS can call an Async event in IW?


RE: JS calling IW Async event - RenSword - 10-06-2023

(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


RE: JS calling IW Async event - mhammady - 10-06-2023

This is exactly what I’m looking for. JS calling Async button click.
Thank you so much, I shall try it tomorrow…