Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 06:47:27 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155439 Posts in 21702 Topics by 7755 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Wrapper Module - Auto Height  (Read 3228 times)
bupaje

Offline Offline

Posts: 519


WWW
« on: August 14, 2008, 09:48:00 AM »

I know this has been asked a lot -for the iframe / Wrapper to adjust based on the height of the content. I found this JQuery example which works reasonably well and thought I'd mention it in case anyone else needs it or wants to tinker with it some more.

http://sonspring.com/journal/jquery-iframe-sizing

It seems like if the content in the iframe takes too long to load then it doesn't always resize and I believe it doesn't work on pages from other domains, but it works most of the time for me so I am happy.
Logged

My Blog, My Site
escpro

Offline Offline

Posts: 651



WWW
« Reply #1 on: December 09, 2008, 02:42:09 PM »

fine  grin --- another idea .. in backend of one active wb project
Jquery feat WebsiteBaker Backend
dragndrop for favorite
accordion for scroll


Detail:


CU Escpro

Logged

Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3144



WWW
« Reply #2 on: May 13, 2009, 10:17:50 AM »

hallo,

is that backend free for download?

greetings
Dietmar
Logged

We are human beings - and nobody is perfect at all.
escpro

Offline Offline

Posts: 651



WWW
« Reply #3 on: May 13, 2009, 10:36:56 AM »

no, projektpage

hallo,

is that backend free for download?

greetings
Dietmar
Logged

Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #4 on: May 13, 2009, 11:48:46 AM »

I know this has been asked a lot -for the iframe / Wrapper to adjust based on the height of the content. I found this JQuery example which works reasonably well and thought I'd mention it in case anyone else needs it or wants to tinker with it some more.

http://sonspring.com/journal/jquery-iframe-sizing

It seems like if the content in the iframe takes too long to load then it doesn't always resize and I believe it doesn't work on pages from other domains, but it works most of the time for me so I am happy.

Doesn't work quite well. It needs a width="100%" in the iframe to start with. Then it shows static content well, but dynamic output from another script is not stretching the iframe.
« Last Edit: May 13, 2009, 11:53:21 AM by Argos » Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
FrankH

Offline Offline

Posts: 735


WWW
« Reply #5 on: May 13, 2009, 02:26:57 PM »

You also can go to AMASP and download FullWrapper module smiley
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #6 on: May 13, 2009, 02:31:01 PM »

You also can go to AMASP and download FullWrapper module smiley

FullWrapper doesn't stretch at all, as far as I know...
« Last Edit: May 17, 2009, 10:57:04 AM by Argos » Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
FrankH

Offline Offline

Posts: 735


WWW
« Reply #7 on: May 13, 2009, 05:45:37 PM »

You also can go to AMASP and download FullWrapper module smiley

FullWrapper doesn't stretch as far as I know...

See http://www.ganzsachentausch.de/demo-jpg-fullwrapper.php
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #8 on: May 13, 2009, 07:45:35 PM »

I don't know what exotic browser you might use, but (in Windows) IE7, Firefox, Chrome, Opera and Safari all show a vertical scrollbar...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
FrankH

Offline Offline

Posts: 735


WWW
« Reply #9 on: May 13, 2009, 08:18:38 PM »

I don't know what exotic browser you might use, but (in Windows) IE7, Firefox, Chrome, Opera and Safari all show a vertical scrollbar...

Ooops, this is annoying. I use Firefox under WXP, and there is no scroll bar.
But I must admit I never tried the other browsers with a jpg file  tongue
When I made the module, the main purpose was showing pdf files.
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #10 on: May 13, 2009, 08:23:02 PM »

I don't know what exotic browser you might use, but (in Windows) IE7, Firefox, Chrome, Opera and Safari all show a vertical scrollbar...

Ooops, this is annoying. I use Firefox under WXP, and there is no scroll bar.
But I must admit I never tried the other browsers with a jpg file  tongue
When I made the module, the main purpose was showing pdf files.
I noticed that the JPG is resized to fit in the iframe when you use FF. But with all other content and all other browsers there is a vertical scrollbar. Yep, too bad... But the solution I found is only a little bit more work to implement, but it functions nearly perfect, also with dynamiccaly created content. I don't know other solutions that can do this. Very clever stuff!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
FrankH

Offline Offline

Posts: 735


WWW
« Reply #11 on: September 07, 2009, 06:24:53 PM »


You could give this one a try:
http://www.websitebakers.com/pages/modules/various/fullwrapper.php

Demos with pdf and jpg (pictures require to be put into a html page):
http://wbdemo.heysoft.de/pages/en/full-wrapper.php
« Last Edit: September 07, 2009, 11:19:11 PM by Argos » Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #12 on: September 07, 2009, 08:39:16 PM »

You could also have a look at the "old" cURL Module ... should be here in the forum.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #13 on: September 07, 2009, 11:22:26 PM »

FYI: I tried the Dynamic Wrapper solution I posted sometime ago again, and I couldn't get it working myself  shocked

Obviously it's not the magical solution I held it for, so I removed it from AMASP and this forum thread. I modfied some messages in this thread to remove references to it, as I don't want to confuse people with talk about something that's not there anymore.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!