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!

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...