Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 25. Nov 2024, 16:00

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 3. Jan 2019, 12:45 
Offline

Joined: 18. Nov 2018, 21:40
Posts: 50
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();


Top
 Profile  
 
PostPosted: 5. Jan 2019, 22:48 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You can do this like described here:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/integrate-iframe-sizer-script
but this is mostly coding you have to do by yourself...

You also can pass the height/ width in the url?

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy