Login Register

Incorrect behavior with Lightbox and Firefox while a page isn't complete loaded

Hello,

I have a problem with Dojox Lightbox (Dojo 1.1.0 )and FireFox (2.0.0.14)
I've created a simple Project in PHP, which creates about 50 thumbnails on my page. Every thumbnail is calculated on the fly( I'm using the gdlib ). When I include the Lightbox functionality to my project everything goes fine, except when I abort the loading of the thumbnails ( it takes about 2-3 sec. ) or click to early on a thumbnail, before the whole page is loaded. After clicking on a picture to expand it to fullsize, the picture is opened in a seperate window, just like I haven't enabled javascripting.
This behavior is only on Firefox. On Opera and IE it works perfect.

Has anyone tips for me?

Rumpel

you could var handle =

you could var handle = dojo.connect(window,"onclick" before addOnLoad to trap the click events and prevent them from linking, and then in your addOnLoad dojo.disconnect(handle). After the lightbox is created it handles the link prevention for you.