[jQuery] Re: Lookup doesn't work within HTML loaded with .load()

2007-10-25 Thread Danny Wachsstock
.load is asynchronous, which means that it returns (and the next statement is executed) before it finishes loading. So $(#left).load(test.html); starts loading #left with test.html but $(#left).css(border,1px solid red); executes within milliseconds, and test.html probably hasn't come

[jQuery] Re: Lookup doesn't work within HTML loaded with .load()

2007-10-25 Thread Sagari
Thank you Danny, it escaped my mind that the load() can return prior to DOM structure is updated. It works OK now that I use the synchronous version. On 26 окт, 05:58, Danny Wachsstock [EMAIL PROTECTED] wrote: .load is asynchronous, which means that it returns (and the next statement is