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 28. Mar 2024, 16:05

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: 18. Feb 2019, 15:52 
Offline

Joined: 18. Nov 2018, 21:40
Posts: 50
Hi,
Since your javascript does a alot and probably reads both height and width of the parent page, is is possible to get the parent viewport in a variable?

In my iframe I have a lightbox that calculates the heigth of the page to fit the image popup related to the pages height. But if the iframe is long but the viewport is short, it shows the popup outside the parents viewport.

Is there a variable I can fetch to include in my lightbox javascript for the parents viewport?

Since else I will have to do some postmessage() javascript to talk to the parent page. I thought maybe that variable is already in the Advanced iframe script?


Top
 Profile  
 
PostPosted: 18. Feb 2019, 16:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you would have to write most by yourself.

Like I have shown here:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/integrate-iframe-sizer-script

a custom onload can be included and then you have to process this in the iframe. There is no default post message which sends the current iframe size to the iframe. The script is intended to get the height from the iframe and then set it on the parent the correct way.

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 15 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