Resize to content height
-
Hey and thank’s a lot for this perfect plugin and for reading me!
I would like to resize the iframe to it content’s height but the iframe src is not from same domain.
So I pasted the script you give just before the </body> – I tried also before </head>, same effect – of the website I show in iframe.The iframe website is also build with wordpress and when i’m connected to the website admin, in my website the iframe is well resizing to content’s height.
But when I’m not connected to external website wordpress admin (which is the case of every viewer of my website…), the content do not resize to content’s height.
Very thank’s for your help,
Anatole
-
Just before the </body> is the perfect place.
Have you maybe placed the script into a place which is only loaded when you are admin? Check the page as normal customer if the script is still there.
Best, Michael
Thank’s for your quick answer Michael,
Like I said, I pasted the script just before </body>.
When I check as normal customer, nothing appears…
When I check as admin, I can see the script…Thank’s again for your help
It’s really weird… I put the script everywhere and I can only see it when I’m connected as admin while every other plugin/wordpress script is well showing…
I cannot understand this… even google cannot answer me on this topic and that’s the first time! I pray that you bring me solution!
Best,
Anatole
Please contact me directly or do you have an url?
Best,
MichaelThank you very much for you time Michael,
The url to my website (where i use iframes), I don’t think you need to go on this website:
http://www.anatole-menichetti.frThe url to the external website (showing in iframe) – the script have been pasted just before </body>:
http://www.eudes-menichetti.comTo see the script you need to login to the website
by visiting the link: http://www.eudes-menichetti.com/wp-admin
with these ids:
username: viewer
password: viewerthen you can see the script…
I think here is maybe the problem:
<!– Dynamic page generated in 0.586 seconds. –>
<!– Page not cached by WP Super Cache. Check your settings page. Not caching requests by known users. (See Advanced Settings page) –>this is there is you are with the admin!
So maybe WP cache does deliver an “old” footer or something like that!
Check if you can reset this cache.
Best, Michael
Thank’s very much Michael I that was the problem!
Now i’m sorry but I have one more trouble…
When I do not use the iframe in a tab it’s perfectly working (like this: http://www.anatole-menichetti.fr or http://www.anatole-menichetti.fr/softwares)
When I do use the iframe in a tab it’s it’s not resizing well (like this: http://www.anatole-menichetti.fr/websites then in tab “catherine henriette – photographe” and link “edition” or in tab “eudes menichetti – artiste” and link “textes”)
Thank’s again and sorry for this :/
Best,
Anatole
Tabs are hidden iframes….
Working examples are found here:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/auto-height-of-hidden-iframes#e28
But this is a feature of the pro version.I also checked your other links. You should set scrolling to no because than the scrollbars are not seen during the resize and also your one page in the iframe is too wide a little bit.
Best,
MichaelSo you assure me that if I buy the pro version then
every page of every iframe of every tab will be resize to content height with no problem ?
Thank’s very much.
Best,
Anatole
Michael,
I bought the pro version.
Then I downloaded the plugin directory.
Then I uploaded it on wordpress.
Nothing changed… I don’t understand, in wordpress settings I have Advanced iFrame, no pro version. In Advanced iFrame settings it’s always purposing me to upgrade pro version and nothing happened on my website.
Did I messe something?
Ok I’m sorry once again for troubleshooting, I removed previous version and added back pro version and it’s working now I’m going to see if full height in tabs works like you say
OK it’s not working at all for tabs…
If you go to: http://www.anatole-menichetti.fr/websites you ‘ll see it…
My Advanced iFrame Pro Settings:
in Advanced settings:
enable responsive iframe: yes
in Resize the iframe to the content height/width:
Hidden tab(s) with iframe: #tablist1-panel2,#tablist1-panel3,#tablist1-panel4
Visible tab: #tablist1-panel1
in External workaround: Howto enable cross domain resize and modification:
Enable the height workaround: yes
Keep overflow:hidden after resize: yes
Hide the iframe until it is completely modified: yes
Thank’s for you support and sorry for the time you lost for me…*.
Best,
Anatole
Use the new lazy loading feature
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/auto-height-of-hidden-iframes#e28The example you used also needs timeout depending on the size of the page as I need to move the iframe out of the view port, measure it and move it back.
It also speeds up your page as you only load the tab when used.
Best Michael
Michael,
After trying every shortcode from your demos, I come back to you because it seems impossible… And now I spent 20$ for pro version I cannot go back…
So if you have the time to check / try the code below (it’s the content of the page http://www.anatole-menichetti.fr/websites), I would be eternally grateful to you (I really need to finish this website tomorrow to present my stage work…):
[tabby title=”L’Agenda du dessin contemporain”]
[advanced_iframe securitykey=”e039d5b50935c2fe390118c5977510910d586700″ src=”http://www.ledessincontemporain.com” enable_external_height_workaround=”true” width=”100%” height=”20″ use_shortcode_attributes_only=”true” tab_hidden=”#tablist2-panel2,#tablist2-panel3,#tablist2-panel4,#tabs-1-2″ tab_visible=”#tablist2-panel1″ enable_lazy_load=”true” enable_lazy_load_manual=”auto” show_iframe_loader=”true”]
[tabby title=”Catherine Henriette – Photographe”]
[advanced_iframe securitykey=”e039d5b50935c2fe390118c5977510910d586700″ src=”http://www.catherinehenriette.com” enable_external_height_workaround=”true” width=”100%” height=”20″ use_shortcode_attributes_only=”true” tab_hidden=”#tablist2-panel2,#tablist2-panel3,#tablist2-panel4,#tabs-1-2″ tab_visible=”#tablist2-panel1″ enable_lazy_load=”true” enable_lazy_load_manual=”auto” show_iframe_loader=”true”]
[tabby title=”Eudes Menichetti – Artiste”]
[advanced_iframe securitykey=”e039d5b50935c2fe390118c5977510910d586700″ src=”http://www.eudes-menichetti.com” enable_external_height_workaround=”true” width=”100%” height=”20″ use_shortcode_attributes_only=”true” tab_hidden=”#tablist2-panel2,#tablist2-panel3,#tablist2-panel4,#tabs-1-2″ tab_visible=”#tablist2-panel1″ enable_lazy_load=”true” enable_lazy_load_manual=”auto” show_iframe_loader=”true”]
[tabby title=”Les potos c’est la famille”]
[advanced_iframe securitykey=”e039d5b50935c2fe390118c5977510910d586700″ src=”http://www.lespotoscestlafamille.com” enable_external_height_workaround=”true” width=”100%” height=”20″ use_shortcode_attributes_only=”true” tab_hidden=”#tablist2-panel2,#tablist2-panel3,#tablist2-panel4,#tabs-1-2″ tab_visible=”#tablist2-panel1″ enable_lazy_load=”true” enable_lazy_load_manual=”auto” show_iframe_loader=”true”]
[tabbyending]
The topic ‘Resize to content height’ is closed to new replies.