Make multiple lightboxes (facebox) execute one after each other.

Posted by Jigs on Stack Overflow See other posts from Stack Overflow or by Jigs
Published on 2010-06-07T17:39:09Z Indexed on 2010/06/07 17:42 UTC
Read the original article Hit count: 195

Filed under:
|
|

I have a php application that sometimes creates two lightboxes on the same page - the result is the last one to be called is the only one shown. How might I ensure that they show one after anohter?

I call a facebox at the bottom of the page like so:

jQuery.facebox('blah');

Currently multiple facebox's are called like so:

jQuery.facebox('blah');jQuery.facebox('blah2');

But only blah2 will ever show.

I need to wait for 'blah' to close before calling 'blah2'...

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery