UI page - call client script on load

ceskie
Kilo Guru

Ahoy,

I have UI page and I would like to call on load client script. Anyone has any idea how to do it? Similarly like 

<body onload="myFunction()">

I am calling ajax (refresh ui page) and I'd like to call it initially also when the ui page is opened/loaded.

Thank you

2 REPLIES 2

ceskie
Kilo Guru

Just figured it out, it works when I wrapp all my content into body tag and generate it dynamically via Ajax

find_real_file.png

Shanti7
Tera Contributor

Hi, 

I have a similar requirement, and when I call the client script in body tag as you mentioned, it works fine when Try the UI page, however when I try to load the UI page UI action, it doesn't work. 

 

Shanti7_0-1731691639839.png

 

Shanti7_1-1731691665463.png

Please let me know if I am missing anything?