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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

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 Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...