[jQuery] Re: JS Inside of a Div loaded with $("#content").load("..")...

2008-11-19 Thread TI Wizard
Very interesting... It alerts "undefined"... And guess what, it is because the JS file doesn't even exist. Funny how problems can have such simple solutions. Thanks! On Nov 19, 4:26 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > I'm not too sure if $(document).ready() works properly in ajax r

[jQuery] Re: JS Inside of a Div loaded with $("#content").load("..")...

2008-11-19 Thread Hector Virgen
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

[jQuery] Re: JS Inside of a Div loaded with $("#content").load("..")...

2008-11-19 Thread TI Wizard
Sure: (Not sure if there is a codebox tag...) With the table DnD plugin, //PAGE LOADED WITH AJAX $(document).ready(function(){ $("#contentTbl").tableDnD(); }); //END JS ON PAGE LOADED THROUGH AJAX Seems odd it would just die with non-Jquery default and UI stuff... Also, I have another pag

[jQuery] Re: JS Inside of a Div loaded with $("#content").load("..")...

2008-11-19 Thread Hector Virgen
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 l

[jQuery] Re: JS Inside of a Div loaded with $("#content").load("..")...

2008-11-19 Thread TI Wizard
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 mu