Do you have some function inside of the ready() block that you could pass the data to instead? Could you post some of your code?
On Sat, Jan 16, 2010 at 11:57 PM, Patrick <kenned...@gmail.com> wrote: > Hi all, > I have a newbie question. You know how you can pass a variable to a > JavaScript function like this: > > onload="getStuff(data)" > > Which is done via the BODY tag. Now, jQuery uses $(document).ready > (function() }); > > My problem is simple: I want to pass in a variable to the ready > (function(). When the page is first loaded, how can I pass in a > variable to this function, or what strategy should I imploy to do > such? > > Thanks for the pointers. Pat >