<?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 How can I load external JavaScript files? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317535#M814</link>
    <description>&lt;P&gt;How can I load extern js scripts in Splunk 6.6.3&lt;BR /&gt;
I try to follow the music dashboard tutorial.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEN5"&gt;http://dev.splunk.com/view/SP-CAAAEN5&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's saying that I should search for: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;waitSeconds: 0 // Disable require.js load timeout
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the HTML field did not contain this string. How can I load jquery-ui?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 11:11:09 GMT</pubDate>
    <dc:creator>manuel2202</dc:creator>
    <dc:date>2017-09-05T11:11:09Z</dc:date>
    <item>
      <title>How can I load external JavaScript files?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317535#M814</link>
      <description>&lt;P&gt;How can I load extern js scripts in Splunk 6.6.3&lt;BR /&gt;
I try to follow the music dashboard tutorial.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEN5"&gt;http://dev.splunk.com/view/SP-CAAAEN5&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's saying that I should search for: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;waitSeconds: 0 // Disable require.js load timeout
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the HTML field did not contain this string. How can I load jquery-ui?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317535#M814</guid>
      <dc:creator>manuel2202</dc:creator>
      <dc:date>2017-09-05T11:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load external JavaScript files?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317536#M815</link>
      <description>&lt;P&gt;@manuel2202, The example uses jQuery UI through CDN url, which implies it should load and work as far as you are connected to internet. &lt;/P&gt;

&lt;P&gt;Are you facing issue when you try out step 3 to add a jQuery UI Accordion or are you using the final code in the example? The reason why I ask is that Sankey Diagram requires &lt;CODE&gt;sankey-helper.js&lt;/CODE&gt; file which needs to be uploaded to your Splunk App's appserver/static folder as stated in Step 4 : &lt;A href="http://dev.splunk.com/view/SP-CAAAEN6"&gt;http://dev.splunk.com/view/SP-CAAAEN6&lt;/A&gt;. This will also require bump/refresh/restart of Splunk and clearing up of browser history to work.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317536#M815</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-05T14:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load external JavaScript files?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317537#M816</link>
      <description>&lt;P&gt;My issue was the missing require.config. The tutorial says to search for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;waitSeconds: 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this code is not generated default. &lt;/P&gt;

&lt;P&gt;This was the missing piece of code to load external JS files via require.js&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require.config({
    baseUrl: "{{SPLUNKWEB_URL_PREFIX}}/static/js",
    waitSeconds: 0, // Disable require.js load timeout
    // For this tutorial, download third-party libraries over the internet. 
    // In practice, it is recommended that you bundle dependencies with your app.
    paths: {
        'jquery-ui': 'http://code.jquery.com/ui/1.10.0/jquery-ui',
        'd3': 'http://d3js.org/d3.v2.min',
        'sankey': 'http://bost.ocks.org/mike/sankey/sankey',
        'sankey-helper': '{{SPLUNKWEB_URL_PREFIX}}/static/app/musicdashboardtutorial/sankey-helper',
        'flux': 'http://www.joelambert.co.uk/flux/js/flux'
    },
    shim: {
        'jquery-ui': {
            deps: ['jquery']
        },
        'sankey': {
            deps: ['d3']
        },
        'sankey-helper': {
            deps: ['sankey']
        },
        'flux': {
            deps: ['jquery']
        }
    }
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now it's working&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 10:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317537#M816</guid>
      <dc:creator>manuel2202</dc:creator>
      <dc:date>2017-09-06T10:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load external JavaScript files?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317538#M817</link>
      <description>&lt;P&gt;@manuel2202, I have converted your comment to answer. Please accept the same to mark this as answered.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 16:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/317538#M817</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-06T16:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load external JavaScript files?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/558796#M6350</link>
      <description>&lt;P&gt;I want to know what is {{SPLUNKWEB_URL_PREFIX}} in baseUrl here. Is it already available in splunk?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 05:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/558796#M6350</guid>
      <dc:creator>sherlock109</dc:creator>
      <dc:date>2021-07-09T05:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load external JavaScript files?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/558802#M6353</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236107"&gt;@sherlock109&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;A placeholder {{SPLUNKWEB_URL_PREFIX}} is used for the prefix of all internal URLs. When the dashboard is rendered, this placeholder is replaced with the correct URL for users, including their locale.&lt;/LI-CODE&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/visualizedata/convertsimplexml/walkthroughautogenerated/" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/developapps/visualizedata/convertsimplexml/walkthroughautogenerated/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 06:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-load-external-JavaScript-files/m-p/558802#M6353</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-09T06:43:13Z</dc:date>
    </item>
  </channel>
</rss>

