Right. That means code at the end of the body then.

I've never seen anything bad happen with that though. Anyone out there
knows the reason for this?

- ricardo

On Nov 25, 2:20 pm, "Pierre Bellan" <[EMAIL PROTECTED]> wrote:
> I'm not sure of that.
>
> In the doc of the ready event, it says
>
> Please ensure you have no code in your <body> onload event handler,
> otherwise $(document).ready() may not fire.
>
> Rodney Dangerfield  - "I looked up my family tree and found out I was the
> sap."
>
> 2008/11/25 ricardobeat <[EMAIL PROTECTED]>
>
>
>
> > You can also run it on page load (as opposed to DOM ready):
>
> > $(window).load(function(){
>
> >   // scripts to run after page load here
>
> > });
>
> > - ricardo
>
> > On Nov 25, 8:08 am, "Pierre Bellan" <[EMAIL PROTECTED]> wrote:
> > > Hi,
>
> > > Put it at the very bottom of your page.
> > > $(document).ready are executed in LILO order.
>
> > > I think that's the only thing it which always works.
>
> > > Pierre
>
> > > Rodney Dangerfield  - "I looked up my family tree and found out I was the
> > > sap."
>
> > > 2008/11/25 MarcelloP <[EMAIL PROTECTED]>
>
> > > > Hi all!
> > > > Please, I'm in the need to run a script at the very end of a page
> > > > loading. Actually my page runs several script in $(document).ready
> > > > function, so I know that these are queued to run one after the others
> > > > when the page is loaded. But I must run a single script as the last of
> > > > all, how can I do a such things?
>
> > > > Thanks in advance
>
> > > > Marcello

Reply via email to