You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a small problem with the Widget.
I'm using more than 4 Packages and there are all needed to be downloaded from the internet, on the Window Load event i used Widget.Call("function"), but at the first run the Widget hasn't downloaded all the packages and tried to do che JavaScript function.
I tried implementing some coding like:
$(window).bind('load', function(){ });
window.onload = function () { alert("It's loaded!") }
You should be able to handle the completion of the packages load through the "init" event of the widget. With this event (in InitScript property) you can call something like:
Activity
itg-assistant commentedon Jun 13, 2026
Levie (ITG) answered 2019-03-29 20:33:53 UTC
Hi Alexandru,
You should be able to handle the completion of the packages load through the "init" event of the widget. With this event (in InitScript property) you can call something like:
this.fireWidgetEvent("ready");
You might find this documentation useful: https://wisej.com/docs/2.0/html/P_Wisej_Web_Widget_InitScript.htm
I hope this helps, please let me know if you need any clarification or have any mores questions!
Best,
Levie
itg-assistant commentedon Jun 13, 2026
Alexandru answered 2019-03-30 08:04:38 UTC
Hi Levie,
First of all thank you for the response.
I used the code as you suggested and it worked fine.
Regards,
Alex