<?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: Linking to flashtimeline with sid from a sideview HTML Module in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26265#M820</link>
    <description>&lt;P&gt;The problem was that I had set onunloadCancelJobs="true" in the first line of the view xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view isSticky="False" isVisible="true" onunloadCancelJobs="true" template="dashboard.html"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Setting the value to false fixed/works around the problem&lt;/P&gt;

&lt;P&gt;The issue only occurs when using Firefox as the Browser as described in &lt;SPLUNK_HOME&gt;/share/splunk/search_mrsparkle/exposed/js/init.js:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
// currently this only works on firefox.&lt;BR /&gt;&lt;BR /&gt;
// It could be made to work on IE if we removed SplunkPatchWindowUnload or reworked it somehow.&lt;BR /&gt;
// and I cannot find a way to get this working on safari.&lt;BR /&gt;
$(window).unload(function() {&lt;BR /&gt;
    if(Splunk.Globals.Jobber &amp;amp;&amp;amp; Splunk.util.normalizeBoolean($(document.body).attr("s:onunloadcanceljobs") || false)){&lt;BR /&gt;
        Splunk.Globals.Jobber.listJobs(function(job){&lt;BR /&gt;
            return (job.canBeAutoCancelled());&lt;BR /&gt;
        }).cancel();&lt;/CODE&gt;&lt;/SPLUNK_HOME&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;}
$(document).unbind();
$(this).unbind();
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;});&lt;BR /&gt;
&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2013 13:06:39 GMT</pubDate>
    <dc:creator>chris</dc:creator>
    <dc:date>2013-05-07T13:06:39Z</dc:date>
    <item>
      <title>Linking to flashtimeline with sid from a sideview HTML Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26264#M819</link>
      <description>&lt;P&gt;When I try to redirect to the flashtimeline using the sid in an HTML Module:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="HTML"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
        &amp;lt;a href=flashtimeline?sid=$results.sid$&amp;gt; View Results&amp;lt;/a&amp;gt;
    ]]&amp;gt;&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get errors like theese:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;The job appears to have expired or has been canceled. Splunk could not retrieve data for this search.

[SimpleResultsTable module] [HTTP 404] &lt;A href="https://127.0.0.1:8089/services/search/jobs/1367928740.698/results?count=10&amp;amp;time_format=%25s.%25Q&amp;amp;output_mode=xml&amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z" target="test_blank"&gt;https://127.0.0.1:8089/services/search/jobs/1367928740.698/results?count=10&amp;amp;time_format=%25s.%25Q&amp;amp;output_mode=xml&amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&lt;/A&gt;; [{'code': None, 'text': 'Unknown sid.', 'type': 'FATAL'}]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The job is created in the filesystem and  there is no time issue as described in the flashtimeline view:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/22969/getting-an-error-banner-http-404-textunknown-sidcode-none-type-fatal-when-searching-in-splunk-web-and-no-results"&gt;http://splunk-base.splunk.com/answers/22969/getting-an-error-banner-http-404-textunknown-sidcode-none-type-fatal-when-searching-in-splunk-web-and-no-results&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I can even view the job in https://&lt;IP&gt;:8089/services/search/jobs/&lt;SID&gt; as long as I do not click on the link.&lt;/SID&gt;&lt;/IP&gt;&lt;/P&gt;

&lt;P&gt;As soon as I click on the link something seems to break.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 12:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26264#M819</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-05-07T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linking to flashtimeline with sid from a sideview HTML Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26265#M820</link>
      <description>&lt;P&gt;The problem was that I had set onunloadCancelJobs="true" in the first line of the view xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view isSticky="False" isVisible="true" onunloadCancelJobs="true" template="dashboard.html"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Setting the value to false fixed/works around the problem&lt;/P&gt;

&lt;P&gt;The issue only occurs when using Firefox as the Browser as described in &lt;SPLUNK_HOME&gt;/share/splunk/search_mrsparkle/exposed/js/init.js:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
// currently this only works on firefox.&lt;BR /&gt;&lt;BR /&gt;
// It could be made to work on IE if we removed SplunkPatchWindowUnload or reworked it somehow.&lt;BR /&gt;
// and I cannot find a way to get this working on safari.&lt;BR /&gt;
$(window).unload(function() {&lt;BR /&gt;
    if(Splunk.Globals.Jobber &amp;amp;&amp;amp; Splunk.util.normalizeBoolean($(document.body).attr("s:onunloadcanceljobs") || false)){&lt;BR /&gt;
        Splunk.Globals.Jobber.listJobs(function(job){&lt;BR /&gt;
            return (job.canBeAutoCancelled());&lt;BR /&gt;
        }).cancel();&lt;/CODE&gt;&lt;/SPLUNK_HOME&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;}
$(document).unbind();
$(this).unbind();
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;});&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 13:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26265#M820</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-05-07T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Linking to flashtimeline with sid from a sideview HTML Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26266#M821</link>
      <description>&lt;P&gt;As it's most likely author, I would not necessarily take that comment at face value.   I think the comment dates from a very long time ago and may very well not have been updated as frequently as the code itself.  Although it is interesting that you're reporting that the onUnloadCancelJobs feature does indeed only work on Firefox.   I'll check that out.  If that's still happening it really should be addressed because it'll reduce concurrent load a lot for users predominantly using IE/safari.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 18:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26266#M821</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-05-07T18:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linking to flashtimeline with sid from a sideview HTML Module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26267#M822</link>
      <description>&lt;P&gt;Hi Nick, it's not just the comment (at least not on my Computer). It took me a while to find out that the problem is browser specific because I randomly switch between Browsers when creating views so I run into (visual) problems quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 13:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Linking-to-flashtimeline-with-sid-from-a-sideview-HTML-Module/m-p/26267#M822</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-05-14T13:25:39Z</dc:date>
    </item>
  </channel>
</rss>

