How to pass a variable value from a page to a lightbox

Hello all,

Does anyone have a quick code example of passing the value of variable on a page to a lightbox which pops up on a page?

Or is the only way to accomplish this to store the variable value in a database and then subsequently call it from the database in the lightbox code?

Thanks, talk to you soon.

Kind regards,

Chris

Hey Chris,

Take a look at the openLightbox API documentation to see how to pass data to a Lightbox.

Hope that does the trick for you.

Yisrael

and if i would like to do it in reverse way? Lightbox → page?

Take a look at the Lightbox.close() API function which explains how information is passed back to the calling page.

Hey Yisrael, if i click a link on description of product page to open lightbox, how to i pass data to lightbox?

@fullhouseit See the openLightbox API documentation. It explains how to pass data to a Lightbox.