Hi, I have a lightbox in the IFRAME using this plugin:
https://www.lokeshdhakar.com/projects/lightbox2/ which supports responsive resizing og the popup image.
Since the IFRAME is on another domain I have to use the
postMessage() function. Is there some way with your plugin to get the parent height and use it in my lightbox js or do I have to write my own function for that? I have tried to find out since the settings for Advanced iFrame has so many options.
The lightbox.js gets the values like this:
Code:
windowWidth = $(window).width();
windowHeight = $(window).height();
I need mostly the height. Now it only gets the iframe height since this is not allowed cross-domain:
Code:
$(parent.window).width();