Hi there,
We are using HTMLPanes to include content which is generated asynchronous to the view generation.
It can happen that the generation of the included content need more time (between 0 and 15 seconds). In the meanwhile the user only sees an empty box with no content.
It seems that the loadingMessage attribute does not get rendered with contentsType set to page.
Here you can see an example delay for the included url, the loadingMesage is not displayed.
I also have tried to set an own styleName to the HTMLPane to add css background. But the included page maybe has no background set so the background would shine through. To remove the class we would need a callback for the onload event of the iframe, but this is also no implemented yet.
Is there any way to display a message while the iframe is loading?
Best Regards
We are using HTMLPanes to include content which is generated asynchronous to the view generation.
It can happen that the generation of the included content need more time (between 0 and 15 seconds). In the meanwhile the user only sees an empty box with no content.
It seems that the loadingMessage attribute does not get rendered with contentsType set to page.
Here you can see an example delay for the included url, the loadingMesage is not displayed.
I also have tried to set an own styleName to the HTMLPane to add css background. But the included page maybe has no background set so the background would shine through. To remove the class we would need a callback for the onload event of the iframe, but this is also no implemented yet.
Is there any way to display a message while the iframe is loading?
Code:
isc.VLayout.create({ "ID" : "theVLayout", "height" : "600", "width" : "600", "align" : "center", "leaveScrollbarGap" : false, "members" : [isc.Label.create({ "ID" : "theLabel", "width" : "100%", "height" : "20", "contents" : "Here is a Label - Waiting for HTMLPane to load", }), isc.HTMLPane.create({ "ID" : "theHtmlPane", "width" : "100%", "height" : "580", "hideUsingDisplayNone" : false, "contentsType" : "page", "contentsURL" : "http://www.itgeared.com/demo/1508-iframe-loading-source.aspx", "loadingMessage" : "Loading...", "border" : "1px solid red" })] })
Comment