You can use livequery to attach events to your elements whenever they
are built. something like the following should worrk for you.
 $('.pageWindow').livequery(function(){
// Add here what you would like to do with the new pageWindow class
});

On Sep 17, 12:32 pm, onmountain <[EMAIL PROTECTED]> wrote:
> Hi. I am using greybox2 plugin to generate a modal window with details
> of items when I click on their hyperlink, identified by the class=   .
> However, I am also adding more such hyperlinks with teh same class=
> on the fly, and I need to rebind the elements correctly. Can I use
> livequery to do this, or do I need to do it another way?
>
> This is what my code looks like:
>
>   $(document).ready(
>     function(){
>           var gbOptions = {
>                 gbWidth: 400,
>                 gbHeight: 400,
>                 captionHeight: 22
>           };
>
>           $('.pageWindow').greybox(gbOptions); // for item info opening in
> modal wondow
>
>         blah blah blah
>
> -------------------------------------------------------
>
> Can I use livequery like something like this ( This doesn't work)?:
>
>           $('.pageWindow').livequery('click',
>               $('.pageWindow').greybox(gbOptions); )  // for item info
> opening in modal wondow
>           });
>
> ---------------------------------------------------------
>
> Thanks,
> Jamie

Reply via email to