<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reading javascript from the server in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reading-javascript-from-the-server/m-p/475425#M31228</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;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: &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/animate-simplexml-dashboard-elements-with-a-carousel.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/animate-simplexml-dashboard-elements-with-a-carousel.html&lt;/A&gt; ).&lt;BR /&gt;
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) &lt;A href="https://splunk-euops.internal.vodafone.com/en-US/static/js/lib/jquery.cloud9carousel.js" target="_blank"&gt;https://splunk-euops.internal.vodafone.com/en-US/static/js/lib/jquery.cloud9carousel.js&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In my carousel.js from 'opt/splunk/etc/apps/app/vf_euops_reporting/appserver/static'  I have the following path:&lt;/P&gt;

&lt;P&gt;require([&lt;BR /&gt;
    'underscore',&lt;BR /&gt;
    'jquery',&lt;BR /&gt;
    'splunkjs/mvc',&lt;BR /&gt;
    'splunkjs/mvc/simplexml/ready!',&lt;BR /&gt;
  '/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'&lt;BR /&gt;
], function(_, $, mvc, Carousel) {&lt;BR /&gt;
....&lt;/P&gt;

&lt;P&gt;I have tried to change the path to:&lt;BR /&gt;
'js/lib/jquery.cloud9carousel.js'&lt;BR /&gt;
'app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js' &lt;BR /&gt;
'/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js' &lt;/P&gt;

&lt;P&gt;and none working....&lt;/P&gt;

&lt;P&gt;But If I add in the URL after the static '/app/vf_euops_reporting' (this is the APP where I would like to install)  &lt;A href="https://splunk-euops.internal.vodafone.com/en-US/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js" target="_blank"&gt;https://splunk-euops.internal.vodafone.com/en-US/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js&lt;/A&gt; it will found...&lt;/P&gt;

&lt;P&gt;Any suggestions, please?&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:00:10 GMT</pubDate>
    <dc:creator>robertcoanca</dc:creator>
    <dc:date>2020-09-30T05:00:10Z</dc:date>
    <item>
      <title>Reading javascript from the server</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reading-javascript-from-the-server/m-p/475425#M31228</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;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: &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/animate-simplexml-dashboard-elements-with-a-carousel.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/animate-simplexml-dashboard-elements-with-a-carousel.html&lt;/A&gt; ).&lt;BR /&gt;
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) &lt;A href="https://splunk-euops.internal.vodafone.com/en-US/static/js/lib/jquery.cloud9carousel.js" target="_blank"&gt;https://splunk-euops.internal.vodafone.com/en-US/static/js/lib/jquery.cloud9carousel.js&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In my carousel.js from 'opt/splunk/etc/apps/app/vf_euops_reporting/appserver/static'  I have the following path:&lt;/P&gt;

&lt;P&gt;require([&lt;BR /&gt;
    'underscore',&lt;BR /&gt;
    'jquery',&lt;BR /&gt;
    'splunkjs/mvc',&lt;BR /&gt;
    'splunkjs/mvc/simplexml/ready!',&lt;BR /&gt;
  '/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'&lt;BR /&gt;
], function(_, $, mvc, Carousel) {&lt;BR /&gt;
....&lt;/P&gt;

&lt;P&gt;I have tried to change the path to:&lt;BR /&gt;
'js/lib/jquery.cloud9carousel.js'&lt;BR /&gt;
'app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js' &lt;BR /&gt;
'/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js' &lt;/P&gt;

&lt;P&gt;and none working....&lt;/P&gt;

&lt;P&gt;But If I add in the URL after the static '/app/vf_euops_reporting' (this is the APP where I would like to install)  &lt;A href="https://splunk-euops.internal.vodafone.com/en-US/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js" target="_blank"&gt;https://splunk-euops.internal.vodafone.com/en-US/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js&lt;/A&gt; it will found...&lt;/P&gt;

&lt;P&gt;Any suggestions, please?&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reading-javascript-from-the-server/m-p/475425#M31228</guid>
      <dc:creator>robertcoanca</dc:creator>
      <dc:date>2020-09-30T05:00:10Z</dc:date>
    </item>
  </channel>
</rss>

