I see what you're saying - however, I still kind of think that the
class should be fully initiated upon the first call regardless whether
there are any lightbox links or not - the problem in my case is that I
don't really know whether my ajax call will return a lightbox link or
not - it's a periodical call that runs every 30 seconds or so - one
way to prevent multiple Lightbox creations would be to check somehow,
whether the lbl elements have been created or not - I'll find a
workaround or maybe just look for another Class.

Thanks anyway

On Dec 30, 8:40 am, Aaron Newton <[email protected]> wrote:
> ....so create another one...
>
> http://mooshell.net/ztxh6/3/
>
>
>
> On Wed, Dec 30, 2009 at 5:25 AM, mmjaeger <[email protected]> wrote:
> > I certainly don't like to patch the source as updates become rather
> > painful - however, although I'm not an expert when it comes to
> > javascript, I think you're example only works because you already had
> > a lightbox link in the html when initiating the script - as mentioned
> > above, I still think the script fails, if there are no lightbox links
> > available upon initializing - see here yourself:
> >http://mooshell.net/ztxh6/
>
> > On Dec 29, 10:41 pm, Sanford Whiteman <[email protected]>
> > wrote:
> > > > moving those two line before the check whether there are any lightbox
> > > > links available did the trick as well.
>
> > > You don't need to patch the source.
>
> > >http://mooshell.net/6cFmm/3/

Reply via email to