Splunk Dev

When will Splunk update the included version of Jquery?

joelzyla
Explorer

Hi,

Just curious what the timeframe is for Splunk including an updated version of jquery. Currently, Splunk ships with Jquery 1.6. Jquery is currently on 1.9, and includes many additional features such as ".on".

Is there a method for manually upgrading the version of jquery?

How would this affect the current Splunk code?

Is it possible to upgrade the version of jquery for only 1 app, without affecting the others?

Thanks!

Tags (2)
0 Karma

LukeMurphey
Champion

I recommend using jQuery's noConflict function. It will allow to swap between two instances of jQuery.

0 Karma

sumangala
Path Finder

Hi,

I have the buildin Jquery library, but need to use another version of jquery for creating context menu.
Both are showing same version after checking its version.
```



require([
"splunkjs/mvc",
"splunkjs/mvc/utils",
"splunkjs/mvc/tokenutils",
"underscore",
"jquery",
-------
],
function(
mvc,
utils,
TokenUtils,
_,
$,
-------
-------

//on load of the page
require(["splunkjs/mvc/simplexml/ready!"], function( ) {
console.log("before conflict 1st loaded jQuery version-----> ", $.fn.jquery );

        var jq162 = $.noConflict( true );
        console.log("after conflict 1st loaded jQuery version-----> ", $.fn.jquery );
        console.log("after 2nd loaded jQuery version-----> ", jq162.fn.jquery );

Output:
before conflict 1st loaded jQuery version-----> 2.1.0
after conflict 1st loaded jQuery version-----> 2.1.0
after conflict 2nd loaded jQuery version-----> 2.1.0

Before adding jquery to splunk I have tested its version was 1.11.3 But, in splunk it is showing 2.1.0?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...