Hi,
We are noticing some strange behaviour with some of our HTML WebReports Widgets in the Smart UI when navigating between tabs/pages.
To make user of jQuery, ModalAlert and some other libraries of the Smart UI, we're using the csui.require() function in our HTML webreports, for example:
<script>
csui.require(['csui/lib/jquery', 'csui/dialogs/modal.alert/modal.alert'], function($, ModalAlert) {
// Code here
});
</script>
However, it seems that sometimes the code in this csui.require() block is not executed, when the widget is loaded from another tab, or in some cases when navigating between workspaces.
Are there other functions besides csui.require that could be useful to use in WebReports widgets? I've seen csui.onReady and csui.onReady2 on these forums, but I'm not entirely sure what they all do. Is there a function to check if a widget is being loaded, or when the user is navigating between pages, or when a page has finished loading?
Thanks!
- Mathijs