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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...