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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...