Dashboards & Visualizations

adding an html meta tag to a dashboard

cphair
Builder

Hello all,

I would like a particular advanced XML dashboard to display in standards mode by default in IE9. Instead of making users change their IE settings, I'd like to include a meta tag that (as I understand it) requests the browser to use standards mode: <meta http-equiv="X-UA-Compatible" value="IE=9">. Is there a way to tell Splunk to insert that meta tag in the HTML page that it generates? This is intended to get a particular piece of Javascript/CSS working.

1 Solution

nmistry_splunk
Splunk Employee
Splunk Employee

I highly recommend not taking that path.

The current issue at hand is you have javascript/css which was incorrectly implemented using non-standard behavior or using a deprecated feature. I would spend time to resolve this issue vs running a dashboard in legacy mode.

Some cons of legacy mode:-

  1. Web applications do not take advantage of new feature of latest version
  2. Performance degradation
  3. Your custom javascript may be execute perfectly, but you may end up having issues with Splunk

View solution in original post

0 Karma

nmistry_splunk
Splunk Employee
Splunk Employee

I highly recommend not taking that path.

The current issue at hand is you have javascript/css which was incorrectly implemented using non-standard behavior or using a deprecated feature. I would spend time to resolve this issue vs running a dashboard in legacy mode.

Some cons of legacy mode:-

  1. Web applications do not take advantage of new feature of latest version
  2. Performance degradation
  3. Your custom javascript may be execute perfectly, but you may end up having issues with Splunk
0 Karma

nmistry_splunk
Splunk Employee
Splunk Employee

I see, your users are in compatibility mode and you want to force them to render in standard mode. Sorry about that, I thought you wanted to render in compatibility mode.

I do not think there is a way to set meta tag on dashboard by dashboard bases. You can modify base.html file under $SPLUNK_HOME/share/splunk/search_mrsparkle/templates/layout/base.html and add the meta tag for all dashboards.

HTH

0 Karma

cphair
Builder

Not sure I understand. My users' IE browsers are set to Compatibility mode by default. I want them to be using Standards mode for this page--the javascript in question works in modern browsers but not in IE7 mode.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...