Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm not familiar with the PeriodicalUpdater plugin, but if I was you, I would look into simply using JavaScript's "setTimeout" function. setTimeout allows you to run a function at a specified interval.</p> <p>For an example that's relevant to your situation, see here:</p> <pre><code>&lt;script type="text/javascript"&gt; setTimeout("updateTable();", 5000); function updateTable() { $.post("/your_script.php", {}, function(result) { $("#my_table").html(result); }); setTimeout("updateTable", 5000); } &lt;/script&gt; </code></pre> <p>Note: There are 1000 milliseconds in one second, so that function is designed to fire off every 5 seconds.</p> <p>In addition...</p> <p>I'm assuming that each entry in your queue table has a unique ID associated with it. Within your main HTML page, I would print out the table like this:</p> <pre><code>&lt;table&gt; &lt;tr id='q1'&gt;&lt;td&gt;Queue Item 1&lt;/td&gt;&lt;/tr&gt; &lt;tr id='q2'&gt;&lt;td&gt;Queue Item 2&lt;/td&gt;&lt;/tr&gt; &lt;tr id='q3'&gt;&lt;td&gt;Queue Item 3&lt;/td&gt;&lt;/tr&gt; &lt;tr id='q4'&gt;&lt;td&gt;Queue Item 4&lt;/td&gt;&lt;/tr&gt; &lt;tr id='q5'&gt;&lt;td&gt;Queue Item 5&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; </code></pre> <p>In other words, assign each row in your queue table the same ID that the entry in your table has. Then, when your AJAX call returns a result, you can check to see if any of the queue items have been finished. If they have, you can do something like:</p> <pre><code>$("#q1").fadeOut("fast"); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload