<?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: Reload separate element within HTML dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199668#M12493</link>
    <description>&lt;P&gt;Thanks! SavedSearchManager works the same way, I just had to create all elements by using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var search1 = new SavedSearchManager ({...})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Jun 2014 20:11:58 GMT</pubDate>
    <dc:creator>ateterine</dc:creator>
    <dc:date>2014-06-17T20:11:58Z</dc:date>
    <item>
      <title>Reload separate element within HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199666#M12491</link>
      <description>&lt;P&gt;Hi Splunk community,&lt;/P&gt;

&lt;P&gt;I am working on a HTML dashboard for deeper customization of the data for displaying on large screens and unattended.&lt;BR /&gt;
I have pretty good knowledge of CSS and HTML so customization works good so far.&lt;/P&gt;

&lt;P&gt;I am trying to set dashboard to auto refresh without reloading the whole page (which is somewhat easy with either meta. tag or JavaScript.&lt;/P&gt;

&lt;P&gt;But what I would rather have is to refresh each element (that way I can choose which elements I want to refresh and how often)&lt;/P&gt;

&lt;P&gt;I've played with various methods, but cannot find a way to reload each element on a dashboard. I've tried Ajax's .load() function, but it doesn't load data when reloading the element.&lt;/P&gt;

&lt;P&gt;Any help will be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 17:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199666#M12491</guid>
      <dc:creator>ateterine</dc:creator>
      <dc:date>2014-06-17T17:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reload separate element within HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199667#M12492</link>
      <description>&lt;P&gt;You can make a search run again by calling the &lt;CODE&gt;SearchManager&lt;/CODE&gt;'s &lt;CODE&gt;startSearch()&lt;/CODE&gt; method, effectively reloading that panel.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 19:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199667#M12492</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-06-17T19:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reload separate element within HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199668#M12493</link>
      <description>&lt;P&gt;Thanks! SavedSearchManager works the same way, I just had to create all elements by using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var search1 = new SavedSearchManager ({...})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199668#M12493</guid>
      <dc:creator>ateterine</dc:creator>
      <dc:date>2014-06-17T20:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reload separate element within HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199669#M12494</link>
      <description>&lt;P&gt;Splunk 6.1 now features element-specific refresh intervals.&lt;/P&gt;

&lt;P&gt;In Simple XML, you can reference this as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;title&amp;gt;Enable auto refresh of 30s&amp;lt;/title&amp;gt;
    &amp;lt;searchString&amp;gt;index=_internal | top limit=3 sourcetype&amp;lt;/searchString&amp;gt;
    &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &amp;lt;option name="refresh.auto.interval"&amp;gt;30&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In HTML and JS, you can reference this as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var element2 = new ChartElement({
    "id": "element2",
    "resizable": true,
    "refresh.auto.interval": "30",
    "managerid": "search2",
    "el": $('#element2')
}, {tokens: true}).render();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199669#M12494</guid>
      <dc:creator>nfilippi_splunk</dc:creator>
      <dc:date>2014-06-17T20:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reload separate element within HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199670#M12495</link>
      <description>&lt;P&gt;Thanks! Can't wait to upgrade to 6.1, very soon now &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 21:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Reload-separate-element-within-HTML-dashboard/m-p/199670#M12495</guid>
      <dc:creator>ateterine</dc:creator>
      <dc:date>2014-06-17T21:52:44Z</dc:date>
    </item>
  </channel>
</rss>

