Getting Data In

('div.nav').prepend not working

uppukumar
Explorer

HI All,
I want to insert a image in splunk page
for that i used
"$('div.nav').prepend('rslogo');"

above thing is working in below 7.2 version,
But not working in latest version

can any one help on this thing

Thanks,
Advance

Tags (1)
0 Karma

tom_frotscher
Builder

Hi,

looks like they changed the class attributes of the header and the navigation. Try something like this:

$("header > div > div:nth-of-type(2)").prepend('Test')

0 Karma

DavidHourani
Super Champion

Could you point us to where you got the class attributes from ?

0 Karma

tom_frotscher
Builder

Hi,

open up a splunk dashboard and use your browsers developer console to take a look at the class attributes. For example in Chrome right click on the navbar in the splunk dashboard and chose inspect element.

You can also test your selectors "live" in the browsers console.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...