Note that there are some explanatory texts on larger screens.

plurals
  1. POStuck reloading ajax content in a jQuery Tab programatically
    primarykey
    data
    text
    <p>I'm very new to programming so please forgive me my noobness. I'm using the excellent jQuery tabs for my application, I load external content into the tabs via ajax, and in one of those tabs I need to programatically reload the content of that tab fter a result. I've followed the documentation* to no avail.</p> <p>I have initialized the tabs in my root page very simply with:</p> <p>Javascript:</p> <pre><code> $(document).ready(function(){ $("#tabs").tabs({ cookie: { expires: 30 } }); }); </code></pre> <p>The HTML:</p> <pre><code>&lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#moderatorManage"&gt;&lt;span&gt;Find and Manage Moderators&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="flaggedCards/" id="flaggedCards" &gt;&lt;span&gt;Flagged Cards&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="pendingDelete/"&gt;&lt;span&gt;SinBin / Pending Delete&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>You can see I load an external URL of "flaggedCards/" In there I have more jQuery with this function:</p> <pre><code> $(document).ready(function(){ $("#controls_{{id}} input").click(function() { $(this).parent().parent().parent().addClass("highlight").fadeTo("slow", 0.1); $("#tabs").tabs( 'load' , 0 ); // fails also tried various selectors }); }); </code></pre> <p>What I am trying to do, is call the flaggedCards tab to reload when that function is called, I've tried various different syntaxes to no avail. </p> <ul> <li>docs.jquery.com/UI/API/1.7.1/Tabs#method-load</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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