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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...