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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...