<?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: How to include custom jquery in app folder in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/565973#M10060</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232085"&gt;@kevintwingstrom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's batter to update custom app code for future purpose. But temporary you can point old Jquery Lib using below javascript code.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require.config({
    paths: {
        'jquery_old': 'PATH_OF_OLD_JQUERY_LIB'
    }
});

require([
    "underscore",
    "backbone",
    "splunkjs/mvc",
    "jquery_old",
    'splunkjs/mvc/simplexml/ready!'
], function(_, Backbone, mvc, $) {

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一 &amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&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>Mon, 06 Sep 2021 06:05:05 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-09-06T06:05:05Z</dc:date>
    <item>
      <title>How to include custom jquery in app folder</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/565852#M10059</link>
      <description>&lt;P&gt;There is a requirement to update jquery on all custom apps and I just have a simple js file in /app/appserver/static/ &amp;nbsp;that allows me to have tabs on my dashboards but now they're all broken because splunk only supports jquery 3.5 or above now. &amp;nbsp;So I opened a ticket and they told me to update jquery for my app. &amp;nbsp;Well I think the solution is to update jqeury on the server so when I use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require(['jquery','underscore','splunkjs/mvc', 'bootstrap.tab', 'splunkjs/mvc/simplexml/ready!'],
                function($, _, mvc){blah blah blah&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; it will pull the updated jquery from the servers. &amp;nbsp;However I can't do that because I'm on splunk cloud and can't update the jquery library on the server. So my question is how do I bundle a jquery.js file in my app, place it in the bin folder (or some other folder) and reference it in my require statement so that I can use an updated library?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 19:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/565852#M10059</guid>
      <dc:creator>kevintwingstrom</dc:creator>
      <dc:date>2021-09-03T19:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to include custom jquery in app folder</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/565973#M10060</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232085"&gt;@kevintwingstrom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's batter to update custom app code for future purpose. But temporary you can point old Jquery Lib using below javascript code.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require.config({
    paths: {
        'jquery_old': 'PATH_OF_OLD_JQUERY_LIB'
    }
});

require([
    "underscore",
    "backbone",
    "splunkjs/mvc",
    "jquery_old",
    'splunkjs/mvc/simplexml/ready!'
], function(_, Backbone, mvc, $) {

});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一 &amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&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>Mon, 06 Sep 2021 06:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/565973#M10060</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-09-06T06:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to include custom jquery in app folder</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/566182#M10061</link>
      <description>&lt;P&gt;I got this figured out but I'm marking yours as a solution because this would clearly do the trick. &amp;nbsp;What I ended up doing is just referencing the mvc library for my jquery commands since jquery is included in the mvc library&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-include-custom-jquery-in-app-folder/m-p/566182#M10061</guid>
      <dc:creator>kevintwingstrom</dc:creator>
      <dc:date>2021-09-07T15:54:32Z</dc:date>
    </item>
  </channel>
</rss>

