<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: External HTML links in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/External-HTML-links/m-p/52449#M2687</link>
    <description>&lt;P&gt;Here's an example solution to add some buttons to a view that can be used to display external web pages in a new window when clicked:&lt;/P&gt;

&lt;P&gt;Create a .html file (e.g. mybuttons.html) in the following directory:&lt;BR /&gt;
&lt;CODE&gt;$SPLUNK_HOME$/etc/apps/$your_app$/appserver/static&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Add the following code to your html file:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;div class="YourButtons"&amp;gt;&lt;BR /&gt;
    &amp;lt;button type="button" onclick="window.open('http://www.google.com')"&amp;gt;Google&amp;lt;/button&amp;gt;&lt;BR /&gt;
    &amp;lt;button type="button" onclick="window.open('http://www.yahoo.com')"&amp;gt;Yahoo&amp;lt;/button&amp;gt;&lt;BR /&gt;
&amp;lt;/div&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;To get these buttons displayed in your choosen view (e.g. yourview.xml), go into yourview.xml and add the following module:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;module name="ServerSideInclude" layoutPanel="viewHeader"&amp;gt;&lt;BR /&gt;
    &amp;lt;param name="src"&amp;gt;mybuttons.html&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This example assumes that you are using Advanced XML.&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2011 10:41:52 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2011-05-03T10:41:52Z</dc:date>
    <item>
      <title>External HTML links</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/External-HTML-links/m-p/52448#M2686</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I would like to add some buttons or links to the viewHeader section of a view so that when clicked, a new window is opened that displays an external web page (e.g. google.com)&lt;/P&gt;

&lt;P&gt;Can this be done?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2011 20:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/External-HTML-links/m-p/52448#M2686</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-03-02T20:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: External HTML links</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/External-HTML-links/m-p/52449#M2687</link>
      <description>&lt;P&gt;Here's an example solution to add some buttons to a view that can be used to display external web pages in a new window when clicked:&lt;/P&gt;

&lt;P&gt;Create a .html file (e.g. mybuttons.html) in the following directory:&lt;BR /&gt;
&lt;CODE&gt;$SPLUNK_HOME$/etc/apps/$your_app$/appserver/static&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Add the following code to your html file:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;div class="YourButtons"&amp;gt;&lt;BR /&gt;
    &amp;lt;button type="button" onclick="window.open('http://www.google.com')"&amp;gt;Google&amp;lt;/button&amp;gt;&lt;BR /&gt;
    &amp;lt;button type="button" onclick="window.open('http://www.yahoo.com')"&amp;gt;Yahoo&amp;lt;/button&amp;gt;&lt;BR /&gt;
&amp;lt;/div&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;To get these buttons displayed in your choosen view (e.g. yourview.xml), go into yourview.xml and add the following module:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;module name="ServerSideInclude" layoutPanel="viewHeader"&amp;gt;&lt;BR /&gt;
    &amp;lt;param name="src"&amp;gt;mybuttons.html&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This example assumes that you are using Advanced XML.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 10:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/External-HTML-links/m-p/52449#M2687</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-05-03T10:41:52Z</dc:date>
    </item>
  </channel>
</rss>

