Dashboards & Visualizations

Reading javascript from the server

robertcoanca
Explorer

Hi guys,

I installed my own instance on Windows. I had some javascript files that will improve my look and field as a visual carousel for single panels ( e.g: https://www.splunk.com/en_us/blog/tips-and-tricks/animate-simplexml-dashboard-elements-with-a-carous... ).
In my instance, everything is working fine! When I had tried to apply also into the production (Apache Server) in the console appear this error: Failed to load resource: the server responded with a status of 404 (Not Found) https://splunk-euops.internal.vodafone.com/en-US/static/js/lib/jquery.cloud9carousel.js

In my carousel.js from 'opt/splunk/etc/apps/app/vf_euops_reporting/appserver/static' I have the following path:

require([
'underscore',
'jquery',
'splunkjs/mvc',
'splunkjs/mvc/simplexml/ready!',
'/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'
], function(_, $, mvc, Carousel) {
....

I have tried to change the path to:
'js/lib/jquery.cloud9carousel.js'
'app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'
'/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'

and none working....

But If I add in the URL after the static '/app/vf_euops_reporting' (this is the APP where I would like to install) https://splunk-euops.internal.vodafone.com/en-US/static/app/vf_euops_reporting/js/lib/jquery.cloud9c... it will found...

Any suggestions, please?

Thank you in advance!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...