<?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: Application.js jquery to customize table SimpleResultsTable in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20682#M728</link>
    <description>&lt;P&gt;Swap out $(documnet).ready for $(document).ajaxComplete&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2013 08:31:01 GMT</pubDate>
    <dc:creator>jonuwz</dc:creator>
    <dc:date>2013-08-01T08:31:01Z</dc:date>
    <item>
      <title>Application.js jquery to customize table SimpleResultsTable</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20681#M727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm attempting to modify cells in a table based on a condition. &lt;/P&gt;

&lt;P&gt;Currently I have the following, which doesn't work:&lt;/P&gt;

&lt;P&gt;if (Splunk.util.getCurrentView() == 'myView' ) {&lt;BR /&gt;
     $(document).ready( function() {&lt;BR /&gt;
          $('.SimpleResultsTable td').css('background-color', '#ffff00');&lt;BR /&gt;
     });&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;The above code does work to turn the entire table yellow when I replace "SimpleResultsTable td" with "SimpleResultsTable".&lt;/P&gt;

&lt;P&gt;So, why can't I change the background of a cell(td)? I have also attempted a row(tr).&lt;/P&gt;

&lt;P&gt;My theory is that because all of these tables say "loading" for several seconds, my javascript is firing before these table elements exist. In fact, if I inspect the code before the tables have loaded, I can see the SimpleResultsTable div is empty.&lt;/P&gt;

&lt;P&gt;Can anyone suggest a way to accomplish this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20681#M727</guid>
      <dc:creator>SplunkyMonkey</dc:creator>
      <dc:date>2013-07-31T17:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Application.js jquery to customize table SimpleResultsTable</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20682#M728</link>
      <description>&lt;P&gt;Swap out $(documnet).ready for $(document).ajaxComplete&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 08:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20682#M728</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-08-01T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Application.js jquery to customize table SimpleResultsTable</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20683#M729</link>
      <description>&lt;P&gt;Thanks, worked!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 13:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Application-js-jquery-to-customize-table-SimpleResultsTable/m-p/20683#M729</guid>
      <dc:creator>SplunkyMonkey</dc:creator>
      <dc:date>2013-08-01T13:24:45Z</dc:date>
    </item>
  </channel>
</rss>

