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 26. Nov 2024, 10:02

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  [ 5 posts ] 
Author Message
PostPosted: 6. Oct 2015, 15:09 
Offline

Joined: 6. Oct 2015, 14:59
Posts: 3
Hi

First of all big thanks for this plugin, it is working so great!

I have a page which displays an iframe and the iframe content height is loading using the shortcode onload_resize="true" onload="aiResizeIframe(this);"
So far this is working great.

My problem is when the iframe contains form elements.

When a user types in the form and presses submit, more content is then loaded in the iframe.
My problem is that the newly loaded content is now hidden as the iframe doesn't change its height after this content has loaded.

Is there a shortcode or setting i can use to fix this problem?

My current shortcode is [advanced_iframe securitykey="...................." src="https://mywebsite.com/page.php" onload_resize="true" onload="aiResizeIframe(this);" width="100%" height="" scrolling="no"]

I am using the external domain workaround as I am the owner of the domain.

any help would be most appreciated.

Thanks


Top
 Profile  
 
PostPosted: 6. Oct 2015, 16:26 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
So it means you are on the same domain?

Look at the the resize after element resize feature.
onload="aiResizeIframe(this);" is not needed. This is done if you set onload_resize="true"
Please note that this is a feature of the pro version.

The free version also has a detection of Ajax calls but this is more complicated to setup and depends on the ajax implementation.

Best, Michael


Top
 Profile  
 
PostPosted: 6. Oct 2015, 16:50 
Offline

Joined: 6. Oct 2015, 14:59
Posts: 3
I have purchased pro version from themeforest.

I am loading content from a sub-domain into my primary domain so technically classed as external.

Thanks


Top
 Profile  
 
PostPosted: 6. Oct 2015, 16:55 
Offline

Joined: 6. Oct 2015, 14:59
Posts: 3
Do you have any examples of this detection of Ajax calls please.


Top
 Profile  
 
PostPosted: 7. Oct 2015, 09:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
If the iframe is from a subdomain onload_resize="true" does not work as this is for the same domain.

See
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/resize-on-element-resize
for an example with auto height and resize if elements dynamically change.

Best, Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 10 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