The CDADA tag is not used in pure HTML dashboards which is what the poster was stating he/she was doing. Javascript does not have to be wrapped in anything in a pure HTML dashboard. Splunk does absolutely no checking of any code in a HTML dashboard.
... View more
I hate to bring this back up but we are now on version 7 of Splunk and I still have yet to find a solution other than use the anchor tag in the navigation menu to link back to Splunk.
... View more
This is an app that uses the three.js Javascript library for a 3D globe rendering. It was designed for v6 of Splunk but I am on v7. I don't know if there was a change in the SDK or not.
It is working right now with my solution after I rewrote it with the Splunk.util call. I just don't know if this is the correct method to obtain the generated app prefix so the Javascript library can properly access the images stored in the appserver/static folder
... View more
I did see that but I need a purely Javascript only solution. This app uses Javascript libraries that need to be passed URLs of images for use. I can't use CSS or the standard HTML.
... View more
I can't use CSS to reference images stored in the static directory and have to use raw Javascript.
I couldn't find the answer to this but ended up figuring out a weird way to discover and use the Splunk generated URL prefix local to each app e.g. "/static/@2b5b15c4ee.156/app/app_name"
using this in Javascript:
Splunk.util.make_url("/static/app/app_name/").replace(":0", "")
Is there a better way to do this?
... View more
It turned out to be having to simply include "splunkjs/ready!" as a parameter to require. This oddly worked in v6 of Splunk without it though.
... View more
I oddly cannot recreate the problem on a different instance of Splunk. I will have to try again tomorrow. I am going to follow this tutorial instead of the one in the Dashboard Examples app since I am doing a pure HTML dashboard: http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAE5Q
... View more
We just upgraded from v6.4 to v7.0.1 and now I am getting an error when trying to use the TableView component on a dashboard. The dashboard will load fine with TableElement but I need the TableView to do a custom cell renderer.
The dashboard previously worked before the upgrade. The error makes sense but I can't figure out how to get around it. I've tried putting delays in the Javascript but I still get the error:
"VisualizationRegistry has not been populated yet. Make sure that the visualizations collection is loaded before attempting to use it."
... View more