<?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 are Javascript files not loading after update to Splunk 6.5.0? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230998#M14334</link>
    <description>&lt;P&gt;Clearing the browser cache and restarting Splunk did it for me, all the json and css files have been refreshed.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 14:36:34 GMT</pubDate>
    <dc:creator>luigeek</dc:creator>
    <dc:date>2016-11-16T14:36:34Z</dc:date>
    <item>
      <title>Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230993#M14329</link>
      <description>&lt;P&gt;I have recently updated to Splunk version 6.5.0. When loading my application views, including those with custom .js files, Javascript is not working and element inspection shows me &lt;CODE&gt;class="no-js"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This has been attempted with Firefox, Chrome, and Internet Explorer browsers on Windows 10 machine with no success or difference. Additionally I get no error messages in the console, nor any messages on the page. Is anyone else having this issue or do you have any idea on a resolution?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;CC_Hoppie&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 21:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230993#M14329</guid>
      <dc:creator>tkindler</dc:creator>
      <dc:date>2016-10-04T21:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230994#M14330</link>
      <description>&lt;P&gt;First, try to add console.log("hello") to your js file to see if it prints "hello" to the console. If it is, that means the js is loaded. &lt;BR /&gt;
Second, if you are doing some DOM manipulation, for example $('.splunk-table'), then it may not work in 6.5 because the class name changed. In this case you can first add an id to the element which you want to edit in SimpleXML, for example &amp;lt;chart id="nice_chart"&amp;gt; , then you can do $('#nice_chart'). &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230994#M14330</guid>
      <dc:creator>ykou_splunk</dc:creator>
      <dc:date>2020-09-29T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230995#M14331</link>
      <description>&lt;P&gt;@tkindler I ran into a similar problem at .conf and talked to the App team. It turns out that they changed how the JS files are loading for dashboards.  &lt;/P&gt;

&lt;P&gt;Any JS files loaded using &lt;CODE&gt;dashboard.js&lt;/CODE&gt; or the &lt;CODE&gt;&amp;lt;form script="file.js"&amp;gt;&lt;/CODE&gt; approaches will no longer appear in the browser debugger, because they are being loaded using the &lt;CODE&gt;eval()&lt;/CODE&gt; approach. The scripts are being executed in memory, so they don't look like loaded files. One way to debug these files is by inserting the line &lt;CODE&gt;debugger;&lt;/CODE&gt; in the original file in the app.  See @ehudb response for other great suggestions.&lt;/P&gt;

&lt;P&gt;Note, there were other changes in the DOM structure, so be sure to check your functionality if you are looking at DOM elements in the navigation bar, the top-level fieldset, or the footer. All of this really messed up things for me at first.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 11:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230995#M14331</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-05T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230996#M14332</link>
      <description>&lt;P&gt;Thank you for the update and information. The change in the JS file loading process is exactly what I was experiencing. I'll have to do some more digging and hope that the documentation is updated to match the new settings.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230996#M14332</guid>
      <dc:creator>tkindler</dc:creator>
      <dc:date>2016-10-12T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230997#M14333</link>
      <description>&lt;P&gt;Adding the console.log message did assist me, and I knew that the js file was being loaded. Adding 'debugger;' from user rjthibod's comment also helped. &lt;/P&gt;

&lt;P&gt;The method changes for DOM manipulation certainly slowed me down a bit and has forced me to spin up another testing environment to permit working in both 6.5 and 6.4.3 to support production.&lt;/P&gt;

&lt;P&gt;The ID switch does make for a handy bandaid, and I'll adjust the code to match new class names.&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230997#M14333</guid>
      <dc:creator>tkindler</dc:creator>
      <dc:date>2016-10-12T14:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230998#M14334</link>
      <description>&lt;P&gt;Clearing the browser cache and restarting Splunk did it for me, all the json and css files have been refreshed.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230998#M14334</guid>
      <dc:creator>luigeek</dc:creator>
      <dc:date>2016-11-16T14:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230999#M14335</link>
      <description>&lt;P&gt;The short answer: You have caching issues.&lt;/P&gt;

&lt;P&gt;To fix server caching: Restart Splunk (this will force Splunk to look for new JS files or check for modifications in your app's &lt;CODE&gt;appserver/static/&lt;/CODE&gt;)&lt;BR /&gt;
To fix client caching: Either reload clearing cache (ctrl-shift-r or command-shift-r) or delete all caches on your browser (but this will affect all other websites)&lt;/P&gt;

&lt;P&gt;If you don't want to restart Splunk for every JS modification (I wouldn't), then add this to &lt;CODE&gt;web.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
minify_js = False
minify_css = False
js_no_cache = True
cacheEntriesLimit = 0
cacheBytesLimit = 0
enableWebDebug = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will disable server caching in Splunk. NOTE that you probably don't want to do this on your production instances since caching helps performance. Source: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/AdvancedDev/CustomVizTutorial#Development_mode_settings"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/AdvancedDev/CustomVizTutorial#Development_mode_settings&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;For client caching, you can do the keyboard shortcut, but I like to the option to disable cache when the dev tool is open (Chrome Developer Tools has this option; not sure about other browsers).&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 19:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/230999#M14335</guid>
      <dc:creator>skawasaki_splun</dc:creator>
      <dc:date>2016-12-15T19:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231000#M14336</link>
      <description>&lt;P&gt;If you are using Chrome,then install also the extension Clear Cache 1.1.2 created by Benjamin Bojko. With one click on the icon in the taskbar you will clear your browser cache and reload the page (reload the page after clearing the cache is an option ). &lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 09:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231000#M14336</guid>
      <dc:creator>pwesterbeek</dc:creator>
      <dc:date>2016-12-28T09:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231001#M14337</link>
      <description>&lt;P&gt;It does load with eval() function.&lt;BR /&gt;
However, I found a great workaround, add this to the end of the js file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; //# sourceURL=filename.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(change filename.js to yourfile name)&lt;/P&gt;

&lt;P&gt;The js will be viewed in the browser debugging console under "(no-domain)" and you can use breakpoints, editing, like you used to before 6.5.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Another possible approach: load the js files using one central file.&lt;BR /&gt;
1. Create a file named load.js&lt;BR /&gt;
load.js contents:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
                                "/static/app/search/file1.js",
                                "/static/app/search/file2.js"
                       ])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2 . Use file1.js and file2.js for your real code. &lt;BR /&gt;
They will be available in the debugger under sources in app/search (like they used to before 6.5 version)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 10:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231001#M14337</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-01T10:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231002#M14338</link>
      <description>&lt;P&gt;Thank you very much for sharing. If only I had known that months ago as you can probably guess from my earlier post.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 11:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231002#M14338</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-02-01T11:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231003#M14339</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;
Since I migrated to a Splunk 6.5, when I want to inspect my code, I no longer find my .js files in my browser debugger (Chrome, IE, Safari -&amp;gt; same problem).&lt;/P&gt;

&lt;P&gt;I read your solution, but I do not understand in which file to add this line: &lt;BR /&gt;
// # sourceURL = filename.js&lt;/P&gt;

&lt;P&gt;Question: In Which File to add this line:     // # sourceURL = filename.js  ?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 16:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231003#M14339</guid>
      <dc:creator>PKersale</dc:creator>
      <dc:date>2017-02-03T16:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231004#M14340</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;
Since I migrated to a Splunk 6.5, when I want to inspect my code, I no longer find my .js files in my browser debugger (Chrome, IE, Safari -&amp;gt; same problem).&lt;BR /&gt;
-1- In your solution in which file I must insert the line debugger;  ?&lt;BR /&gt;
-2- In which part of file ?&lt;/P&gt;

&lt;P&gt;Thank&lt;/P&gt;

&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 16:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231004#M14340</guid>
      <dc:creator>PKersale</dc:creator>
      <dc:date>2017-02-03T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231005#M14341</link>
      <description>&lt;P&gt;Hi Philippe, add the line as the last line of your js file.&lt;/P&gt;

&lt;P&gt;If your js file is named myjscode.js, and you are adding it to your xml dashboard with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="myjscode.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;, add as the last line &lt;STRONG&gt;inside&lt;/STRONG&gt; the js file:&lt;/P&gt;

&lt;P&gt;// # sourceURL = myjscode.js&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 13:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231005#M14341</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-04T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231006#M14342</link>
      <description>&lt;P&gt;In the JS file you want to inspect, and in the location you want to put an initial breakpoint. The &lt;CODE&gt;debugger;&lt;/CODE&gt; line acts like a breakpoint.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 14:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231006#M14342</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-02-04T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231007#M14343</link>
      <description>&lt;P&gt;You can refer to my answer below, it will add the js back to the browser debugger.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 07:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231007#M14343</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-05T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231008#M14344</link>
      <description>&lt;P&gt;If all you need is non-cached js server-side for development purposes, then you probably don't want to set&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;minify_js = False
minify_css = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as those only change splunk's own js/css files from minified to non-minified versions and do not impact your code at all, what these settings will do however is significantly slow down page load times.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 07:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231008#M14344</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2017-02-06T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231009#M14345</link>
      <description>&lt;P&gt;Hi ehudb (thank for your explanations)&lt;/P&gt;

&lt;P&gt;I've applied your explanations, but it still does not work.&lt;BR /&gt;
-1- In my dashboard, file   &lt;STRONG&gt;life.xml&lt;/STRONG&gt;, I have: form script ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="life.js" stylesheet="style.css" hideSplunkBar="true" hideFooter="true"  hideEdit="true"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-2- I add to the last line of my file &lt;STRONG&gt;life.js&lt;/STRONG&gt;     &lt;STRONG&gt;// # sourceURL = life.js&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                    }), outputName, "xlsx");
                });
            });
        });
    };
 });
//# sourceURL = lifecycle.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I restart splunk&lt;/P&gt;

&lt;P&gt;it still does not work.&lt;/P&gt;

&lt;P&gt;Test: when I type in the browser console &lt;STRONG&gt;// # sourceURL = life.js&lt;/STRONG&gt;&lt;BR /&gt;
I have the name of the file &lt;STRONG&gt;life.js&lt;/STRONG&gt; which appears under &lt;EM&gt;(no-domain)&lt;/EM&gt;. If I select the file &lt;STRONG&gt;life.js&lt;/STRONG&gt;, it displays in edition that &lt;STRONG&gt;// # sourceURL = life.js&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I do not understand&lt;/P&gt;

&lt;P&gt;Do you have an idea about my problem ?&lt;/P&gt;

&lt;P&gt;Thank&lt;/P&gt;

&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231009#M14345</guid>
      <dc:creator>PKersale</dc:creator>
      <dc:date>2017-02-06T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231010#M14346</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Not sure if that was a typo, but your quote used &lt;BR /&gt;
" //# sourceURL = &lt;STRONG&gt;lifecycle&lt;/STRONG&gt;.js"  instead of " //# sourceURL = &lt;STRONG&gt;life&lt;/STRONG&gt;.js"&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231010#M14346</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-06T20:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231011#M14347</link>
      <description>&lt;P&gt;Hi ehudb (Thank to help me)&lt;/P&gt;

&lt;P&gt;Oh sorry, in my code I writed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                    }), outputName, "xlsx");
                });
            });
        });
    };
 });
//# sourceURL = life.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's not the problem.&lt;/P&gt;

&lt;P&gt;I do not understand, where is the problem.&lt;/P&gt;

&lt;P&gt;Thank!&lt;/P&gt;

&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 08:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231011#M14347</guid>
      <dc:creator>PKersale</dc:creator>
      <dc:date>2017-02-07T08:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Javascript files not loading after update to Splunk 6.5.0?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231012#M14348</link>
      <description>&lt;P&gt;Hi  ehudb&lt;/P&gt;

&lt;P&gt;I resolve my problem, with the second approach: (explains Above) load the js files using one central file.&lt;/P&gt;

&lt;P&gt;-1- I create a file &lt;STRONG&gt;loadxxxx.js&lt;/STRONG&gt; by the &lt;STRONG&gt;formxxxx.xml&lt;/STRONG&gt;&lt;BR /&gt;
ex: &lt;STRONG&gt;loadLifecycle.js&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    "/static/app/lifecycle.js",
    "/static/app/jquery.dataTables.js",
    "/static/app/passTokensViews.js",
    "/static/app/tableCell.js",
    "/static/app/accessPermission.js"
])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-2- I call the &lt;STRONG&gt;loadxxxx.js&lt;/STRONG&gt; in &lt;STRONG&gt;form.xml&lt;/STRONG&gt;&lt;BR /&gt;
ex: &lt;STRONG&gt;loadLifecycle.js&lt;/STRONG&gt; called in script&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="loadLifecycle.js" stylesheet="jquery.dataTables.css,style.css,loading.css" hideSplunkBar="true" hideFooter="true"  hideEdit="true"&amp;gt;
    &amp;lt;label&amp;gt;Lifecycle Component&amp;lt;/label&amp;gt;
    &amp;lt;search id="lifecycleBaseSearch"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and now it WORK, I can inspect the code with (safari, Chrome, etc..)&lt;/P&gt;

&lt;P&gt;It's GOOD&lt;/P&gt;

&lt;P&gt;Thank ehudb and tkindler&lt;/P&gt;

&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Javascript-files-not-loading-after-update-to-Splunk-6-5/m-p/231012#M14348</guid>
      <dc:creator>PKersale</dc:creator>
      <dc:date>2017-02-07T13:41:04Z</dc:date>
    </item>
  </channel>
</rss>

