I'm not too sure if $(document).ready() works properly in ajax requests. I could be wrong, but I think the document was ready *before* the ajax call was made. In other words, the function will be called immediately as soon as its created. Unless jquery knows to wait until the ajax call is complete before firing the ready state again. Anyways, regarding the plugin, this may seem like a dumb question but is the plugin loaded and available at the time the call is made?
alert(typeof $("#contentTbl").tableDnD); // function? -Hector On Wed, Nov 19, 2008 at 4:17 PM, TI Wizard <[EMAIL PROTECTED]> wrote: > > Sure: > > (Not sure if there is a codebox tag...) > > With the table DnD plugin, > > //PAGE LOADED WITH AJAX > > <script> > $(document).ready(function(){ > $("#contentTbl").tableDnD(); > }); > </script> > > //END JS ON PAGE LOADED THROUGH AJAX > > Seems odd it would just die with non-Jquery default and UI stuff... > Also, I have another page with the AjaxForm plugin which works, which > is odd. > > The plugin JS files are loaded inside of the main page, the page which > loads the others (if that makes sense...) > > On Nov 19, 3:47 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > > Can you post some sample code? It might be a syntax error. > > -Hector > > > > > > > > On Wed, Nov 19, 2008 at 3:45 PM, TI Wizard <[EMAIL PROTECTED]> > wrote: > > > > > Anyone? > > > > > On Nov 18, 7:58 pm, TI Wizard <[EMAIL PROTECTED]> wrote: > > > > Javascript and default JQuery (and UI) stuff works inside of a DIV > > > > which was loaded with the Ajax Load function.. However, plugins > > > > don't... > > > > > > How can I get the javascript to work inside of the div that was > > > > loaded? Tried multiple plugins and it gives me the error: > > > > > > Message: Object doesn't support this property or method > > > > Line: 565303106 > > > > Char: 2 > > > > Code: 0 > > > > URI:http://localhost/WCMS/admin/index.php > > > > > > Can anyone help?- Hide quoted text - > > > > - Show quoted text -