Jquery has .ready() method

http://api.jquery.com/ready/#fn

I think you can do

jQuery(document).ready(function($) {
    // Code using $ as usual goes here.
    //this code is executed after the whole document is loaded and ready
});

2010/9/27 Jose <[email protected]>

>
>
> On 27 sep, 00:29, mdipierro <[email protected]> wrote:
> > ajax calls do not execute js in views but you can return any js code
> > from a web2py controller as in
> >
> > response.js="activate_slider();"
> >
> > and it should do it.
> >
>
> This does not work. What it does is call activate_slider () before you
> load the target div.
>
> What I need is to call activate_slider () after they have finished
> loading the images.
>
> Jose




-- 

http://rochacbruno.com.br

Reply via email to