Dashboards & Visualizations

Splunk's jQuery.ajax extension requires jQuery and the jQuery.cookie plugin

lmyrefelt
Builder

Hi,

I am trying to add some "custom" javascript (jquery) to a django template.
From time to time i am receiving the following error message(s) ;

Splunk's jQuery.ajax extension requires jQuery and the jQuery.cookie plugin

Does anyone know how to solve this ?

FYI; i have added my code and it runs fine ... but still getting the message(s) below.

<script>
 $(document).ajaxComplete(function() {
        $('.navbar-inner').hide()
 });
</script>

alt text

0 Karma
1 Solution

lmyrefelt
Builder

OK, so these messages seems to have been related to me trying to load external jquery in my django code.
I removed those and change my script to;

require(["splunkjs/ready!"], function(mvc) {
$(document).ready(function() {
$('.splunk-footer').remove()
$('.shared-footer').remove()
})
});

View solution in original post

lmyrefelt
Builder

OK, so these messages seems to have been related to me trying to load external jquery in my django code.
I removed those and change my script to;

require(["splunkjs/ready!"], function(mvc) {
$(document).ready(function() {
$('.splunk-footer').remove()
$('.shared-footer').remove()
})
});

lmyrefelt
Builder

hmmm ... so i think that was due to me loading some external jquery libraries

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 ...