“HTMLBody” AND “JavaScriptCharts” => Charts not working by default
If you use “HTMLBody” AND “JavaScriptCharts” the Charts are not working by default, because there is no Javascript onload in the HTML File, so the scripts are not loaded.
You must manually include both the Javascript commands in the HTMLBody:
HTMLBody <body onload="if(window.location.href.indexOf('usage') > -1) HTMLBody {onload_usage_page(setupUsagePageCharts);}else HTMLBody {onload_index_page(setupIndexPageCharts);}">
Can you please add this to the documentation?
thank you
Comments (6)
-
repo owner -
repo owner - changed status to open
-
repo owner - changed milestone to v5.0.0
-
repo owner - changed status to resolved
-
repo owner -
assigned issue to
If you use “HTMLBody” AND “JavaScriptCharts” the Charts are not working by default, because there is no Javascript onload in the HTML File, so the scripts are not loaded.
You must manually include both the Javascript commands in the HTMLBody:
HTMLBody <body onload="if(window.location.href.indexOf('usage') > -1) HTMLBody {onload_usage_page(setupUsagePageCharts);}else HTMLBody {onload_index_page(setupIndexPageCharts);}">
Can you please add this to the documentation?
thank you
-
assigned issue to
-
repo owner - changed status to closed
- Log in to comment
SSW v5 will generate an error if the
body
tag is included inHTMLbody
. I will update README to call it out explicitly.