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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...