Hello, in developing a new app, I want to referance a local file, not a website.
I have this: require(["https://code.jquery.com/ui/1.10.0/jquery-ui.js"], but want it to be local to the /appserver/static folder.
How to achieve?
In case of any clarifications please revert.
Found it. I did this:
require(["{{SPLUNKWEB_URL_PREFIX}}/static/app/APPNAME/jquery-ui.js"]
Found it. I did this:
require(["{{SPLUNKWEB_URL_PREFIX}}/static/app/APPNAME/jquery-ui.js"]
It's built in to Splunk 6, no additional django items needed. A little more seamless, IMHO. Splunk 5 - Definitely requires Django framework.
Gotcha, thanks.. I've only used the django framework, Is there a reason you choose the html dashboards over django?
Right in the HTML Dashboard. I'm using Splunk 6.
What file do you place that in?
Put the javascript file in Splunk/etc/apps/MyAppName/django/MyAppName/static/MyAppName
Add this to html file in Splunk/etc/apps/MyAppName/django/MyAppName/templates