Back in the older Splunk days, I was able to configure a dashboard panel to allow a user the ability to click on the panel and go to another URL, using code similar to this in my dashboard XML:
<div class="dashboard-panel" onclick="urlrd('http://www.xyz.com');">
window.location.href = dest_url;}
I'm currently working on a dashboard that uses a PNG image as a background, with div tags used to define an area on the background (a rectangle) that will change color based on input read from a lookup table. The idea is for the consumer to click on the rectangle in order to be directed to a URL with more information; I'm just at the "demo" stage right now.
Here's a sample of the XML code I'm using:
<form stylesheet="alpha.css" refresh="30" script="drilldown.js">
<fieldset submitButton="false" autoRun="true">
<input type="time" token="field1" searchWhenChanged="false">
<query>| inputlookup data.csv | head 1 | table value color_value</query>
<div id="alpha" class="singleValue" style="color: $color_alpha$; background-color: $color_alpha$; width: 155px; height: 70px; top: 218px; left: 210px; cursor: pointer"/>
var components = [
While the background and singleValue "rectangle" work correctly on the dashboard, my configuration attempts to make the rectangle "clickable" in order to go to Google are not successful.
What to I need to tweak (or add) in order to make the click event successful?
... View more