Is it possible to pass data to a lightbox while it is open?
If you want your lightbox to pass data to your page, you need to close the lightbox first.
https://www.wix.com/corvid/reference/wix-window.lightbox.html#close
@givemeawhisky hi, thanks for the reply. So here is my prediciment. I have a we scanner on my page that scanned a qr and searches a data set for the correct registrant. However, I wanted to be able to use the same scanner without having to reload the whole iframe script to be able to then scan the registrants bib number. It is a check in process. But I am unable to get the camera scanner to run on the iframe for some reason, and also unable to get the scanner on the page behind it to pass data to the iframe while it is open. Any suggestions?
@logan
You mention iframe, have you looked into using the html component code so that you can pass data from it to a page and vice versa using postMessage and onMessage?
https://support.wix.com/en/article/corvid-working-with-the-html-element
https://www.wix.com/corvid/reference/$w.HtmlComponent.html
Plus, don’t forget that if your html code comes from a third party, then Wix would not be able to provide support for it as they have not had the time to test it fully works themselves etc, therefore you would need to go back to the third party provider for more help with integrating into your site…
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
@givemeawhisky hi there, this is a wix code ‘issue’ not the code I am running in my iframe. I have the iframe just used as the scanner and I already am passing that info to the page that searches the dataset, but then when I click a button on a member of that data set it pulls up the light box requesting to enter the bib number, but I have no way of running another camera iframe in the lightbox while the other iframe is still using the camera on the background search page. And I can’t send the data to the lightbox beforehand, because I want to have the option on the lightbox to scan a bib qr code to enter that number instead of by hand.
@givemeawhisky hi, I already use the scanner and pass the data to the page to search the dataset based on the QR code scanned data. But I then have it so when you tap in the repeater on a button it opens a light box associated with that participants data to enter the bib number of that registrant, however the camera being on the back page is unable to scan anything and send the data to the lightbox when the lightbox is not on the same “level” and there is no way to pass the message data to the lightbox since the html iframe is on the page behind the lightbox.
@logan Hey, have you found a solution, how to send data to your lightbox?
@nickoertel
It’s not really recommended to reopen old threads. A better idea is to open a new post with his own issue, like you did already here…
https://www.wix.com/velo/forum/community-discussion/lightbox-communication-1