<?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 Re: Why is JavaScript not loading after renaming? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478103#M31378</link>
    <description>&lt;P&gt;all problems in cache, thanks&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 07:59:12 GMT</pubDate>
    <dc:creator>rendie</dc:creator>
    <dc:date>2019-11-05T07:59:12Z</dc:date>
    <item>
      <title>Why is JavaScript not loading after renaming?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478099#M31374</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I want to write a custom panel and use for it js library vis.js, &lt;BR /&gt;
but when I name this library and my js with script="vis.js, my.js", then js does not load.&lt;/P&gt;

&lt;P&gt;In my js I use this example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
"splunkjs/mvc",
"jquery",
'splunk.util',
'splunkjs/mvc/tableview',
'splunkjs/mvc/simplexml/ready!'
], function(
mvc,
$,
splunkUtil,
TableView
) {
console.log("Start");
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Nov 2019 12:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478099#M31374</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-11-04T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is JavaScript not loading after renaming?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478100#M31375</link>
      <description>&lt;P&gt;Hi rendie,&lt;BR /&gt;
wher did you locate your js?&lt;BR /&gt;
is must be in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/appserver/static&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478100#M31375</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-04T16:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is JavaScript not loading after renaming?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478101#M31376</link>
      <description>&lt;P&gt;Yes, all scripts in $SPLUNK_HOME/etc/apps/appserver/static&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478101#M31376</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-11-04T18:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is JavaScript not loading after renaming?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478102#M31377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have tested your script and its working fine on my system.&lt;BR /&gt;
Just to confirm and correct the script location - &lt;CODE&gt;$SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/appserver/static&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If still its not working, check your chrome console and share the error logs if there.&lt;/P&gt;

&lt;P&gt;Another check,&lt;BR /&gt;
Most of the times, js are not cleared from browser cache and even after updating the js in backend, browser still loads the old js.&lt;BR /&gt;
In Splunk goto - &lt;CODE&gt;&lt;A href="https://your_splunk_server:8000/_bump" target="test_blank"&gt;https://your_splunk_server:8000/_bump&lt;/A&gt;&lt;/CODE&gt; and click the &lt;CODE&gt;Bump Version&lt;/CODE&gt; and refresh your dashboard.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 21:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478102#M31377</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2019-11-04T21:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is JavaScript not loading after renaming?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478103#M31378</link>
      <description>&lt;P&gt;all problems in cache, thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 07:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-JavaScript-not-loading-after-renaming/m-p/478103#M31378</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-11-05T07:59:12Z</dc:date>
    </item>
  </channel>
</rss>

