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, 17:38

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  [ 7 posts ] 
Author Message
 Post subject: Resize on Element Resize
PostPosted: 20. Mar 2015, 17:49 
Offline

Joined: 20. Mar 2015, 17:42
Posts: 14
Please take a look at the following URL:

https://www.scopetalent.com/become-client

The iFrame on that page is loading from an external domain. It does resize correctly on load, but I haven't been able to get the "Resize on Element Resize" feature to work. If you click any of the radio buttons, that increases the size of the form, but the iFrame does not resize.

I'm calling the iFrame with the following shortcode:

resize_on_element_resize="#rackforms-output-div-page0"

Can you tell me how to get it working, please?


Top
 Profile  
 
PostPosted: 21. Mar 2015, 09:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
If you are on an external domain you have to set this setting for the external workaround in the default settings or before you include the ai_external.js script.
Setting this in the shortcode only enables this for the same domain.

Best, Michael


Top
 Profile  
 
PostPosted: 22. Mar 2015, 00:53 
Offline

Joined: 20. Mar 2015, 17:42
Posts: 14
I tried that and it works perfectly, but here's the problem I'm having now:

The content in my iFrame is a form, which displays a confirmation page after the user submits it. I'm able to resize the form dynamically, but when the confirmation page loads, the iFrame does not resize, so it looks awful.

Both the form and the confirmation page use the same jQuery selector to determine the height.


Top
 Profile  
 
PostPosted: 22. Mar 2015, 12:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
is there a page reload?
than you have to enable auto heigt for the external workaround.

Resize on element resize is designed to work when the page is already loaded.

Best, Michael


Top
 Profile  
 
PostPosted: 22. Mar 2015, 19:58 
Offline

Joined: 20. Mar 2015, 17:42
Posts: 14
The form submission occurs within the iFrame, so yes there's a page reload, but it's the content inside the iFrame that's reloading. The main page does not reload.

I do have auto height enabled in the workaround section and it does size correctly when it's first loaded, but after I submit the form, the iFrame retains the size of the form, rather than shrinking down to the size of the confirmation page.


Top
 Profile  
 
PostPosted: 22. Mar 2015, 21:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

is the external workaround also included on the 2nd page?

Best, Michael


Top
 Profile  
 
PostPosted: 22. Mar 2015, 23:29 
Offline

Joined: 20. Mar 2015, 17:42
Posts: 14
Actually, it was not. Thanks for pointing that out, it works perfectly now. Your support is awesome!


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 12 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