Custom Loading Indicator for WebFrame + Event Router Boolean Handling in ThingWorx
Hello Everyone,
I am working with the WebFrame widget in a ThingWorx Mashup and facing an issue related to loading indication.
When the URL inside the WebFrame takes time to load, there is no built-in loading indicator or event to detect the loading state. I want to display a custom loading indicator (spinner) until the URL is fully loaded.
My requirements:
Show a custom loader when WebFrame URL starts loading
Hide the loader once the URL is completely loaded
Challenges:
WebFrame does not provide any loading status or onLoad event
I cannot reliably detect when the content has finished loading
Additional Issue (Event Router):
I tried using the Event Router to control a BOOLEAN variable (e.g., isLoading) for showing/hiding the loader. However, I am not sure how to properly pass or assign TRUE/FALSE values through the Event Router.
Questions:
Is there any way to detect WebFrame loading start/end events in ThingWorx?
What is the best practice to implement a custom loading indicator for WebFrame?
How can I correctly use Event Router to assign TRUE/FALSE values to control loader visibility?

