Refire ready event after AJAX reload
<p>I've researched other threads and am just confused.</p>

<p>Situation: I'm supplying a generic jQuery plugin that loads the div the user specifies dynamically via AJAX.  Everything works fine, but on e.g. one user's page, there is a piece of JS that is not called, because the "ready" event is not refired.</p>

<p>The usual situation will be that the user's other jQuery stuff will be placed after jQuery(document).ready.</p>

<p>I've just tested calling:</p>

<pre><code>$(document).trigger('ready');
</code></pre>

<p>manually - it has no effects at all, as I presume that "ready" is called only once and only once.</p>

<p>What is the proper way to handle it?
(it would be great to provide the most generic solution possible)</p>

<p>I'd love to do something like suggested in this thread:</p>

<p><a href="http://stackoverflow.com/questions/2238030/jquery-trigger-document-ready-so-ajax-code-i-cant-modify-is-executed">jquery : trigger $document.ready (so AJAX code I can&#39;t modify is executed)</a></p>

<p>But I think that readyList is now private and can't be manipulated directly anymore?</p>

<p>It's worth mentioning, that the plugin I'm providing supplies a callback functionality for the user.  Of course, (s)he could place post-loading handling JS code in there.</p>

<p>Thanks in advance and kind regards</p>
