On 1/19/07, Yehuda Katz <[EMAIL PROTECTED]> wrote:
> What I do is apply a context to the function called by document.ready, and
> use that context in all of the calls I make in it. Then, on load()'s
> complete, I pass the stuff being updated into that method.
>
> docReady = function(cx) {
>   cx = cx || document;
>   $("tr:odd", cx).addClass("odd")
> }
>
> $(docReady);
>
> $("#container").load(url, function(html) { docReady(html) })
>
> Something like that should work :-D
>
> -- Yehuda

That's a great tip Yehuda! Keeps everything contained in 1 nice function :)

cheers,
Justin

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to