Dynamic iFrame

Hi,

I’ve been using an iFrame on my site for a year or so, with an embedded bananAlbum. It works great. One thing that is a shame though, is that it doesn’t enjoy the neat dynamic resizing trick of flash based sites.

I came across this a few days ago and have been trying to implement it, but it’s not working.

http://skifreak.jalbum.net/tipsTricks.html

Click on link : “Example Albums” … then … “Using BananAlbum in a Dynamic Frame”

I’m getting the bananAlbum content 2 times. My normal iFrame with bananAlbum inside and now another instance, completely separate, above it. All I’m doing is following the instructions on this site, but I guess it’s not that simple with Freeway Actions.

Can anyone give me a clue where I might be going wrong?

Thanks!

Grant

www.grantsymon.com (my site as normal)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Could you post a link to a non-working example?

Thanks,

Walter

On Jan 8, 2009, at 11:19 AM, grantsymon wrote:

I’m getting the bananAlbum content 2 times. My normal iFrame with
bananAlbum inside and now another instance, completely separate,
above it. All I’m doing is following the instructions on this site,
but I guess it’s not that simple with Freeway Actions.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hey Walter!

Happy New Year! :slight_smile: :slight_smile:

I’ve put up this page, which shows the problem.

http://homepage.mac.com/grantsymon/Sites/English/piege_eng.html

Grant


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You have two iframes in there, that’s why you’re seeing both of them.
One is being added by the script, and the other is manually entered in
Freeway. Delete the one that’s in there from Freeway, and replace it
with a Markup Item containing:

<iframe id="bananalbum" align="top" frameborder="0" marginheight="0"  
marginwidth="0"
   scrolling="no" style="background-color: #D9D9D9">
   Your browser does not support iFrames</iframe>

And this should just start working – sort of. I had huge issues with
the width of the page – it never seems to run out of horizontal
scroll bars. I believe it may be expecting to run at the full page
width, which means you can’t put anything on either side of it.

Walter

On Jan 8, 2009, at 2:16 PM, grantsymon wrote:

Hey Walter!

Happy New Year! :slight_smile: :slight_smile:

I’ve put up this page, which shows the problem.

http://homepage.mac.com/grantsymon/Sites/English/piege_eng.html

Grant


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Forgot to add this: remove that same iframe code from the After Start
Body part of the Page HTML Markup dialog. It’s currently being
injected as the very first thing in the body of the page, and I
suspect you want it to appear down next to the navigation where your
Freeway-drawn version is currently.

Walter

On Jan 8, 2009, at 2:43 PM, Walter Lee Davis wrote:

You have two iframes in there, that’s why you’re seeing both of
them. One is being added by the script, and the other is manually
entered in Freeway. Delete the one that’s in there from Freeway, and
replace it with a Markup Item containing:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter!

It’s probably incredibly simple for you … but I’m lost. I can only find one reference to Markup Item in the User Guide and it doesn’t help. :frowning:

So …

I delete my iFrame box from my page.
I delete the AfterBody markup text.

I keep the AfterHead markup text.
I create an HTML item, the same size and positioning as my old iFrame box
Where do I put the markup text you wrote for me ? … “id=“bananalbum” align=“top” etc.etc.”

Sorry to be a dunce. :frowning:

Grant


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

All correct except this part.

On Jan 9, 2009, at 5:16 AM, grantsymon wrote:

I create an HTML item, the same size and positioning as my old
iFrame box
Where do I put the markup text you wrote for me ? …
“id=“bananalbum” align=“top” etc.etc.”

Put all of that markup in a Markup Item which you draw on the page in
place of your old iframe box.

Click where you want the iframe to appear – I’m assuming this is
directly on the page – and from the main menu, choose Insert / Markup
Item. You’ll see a dialog box, where you can paste the code, and then
when you okay it, a 100px square box in the middle of your screen with
a little [H] in the corner. Drag the handles on that box to make it
the shape and location of your iframe, and you should be all set.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Fantastic Walter!

It works really well. And by chance, my site is ideally designed for the resizing.

http://homepage.mac.com/grantsymon/Sites/English/piege_eng.html

A couple more questions if I may?

1/ Is there any way of making my copyright notice ‘stick’ to the bottom of the iFrame?

2/ I know people here hate browser window resizing, but I think it’s appropriate for photography sites, plus … as you may have noticed, the resized bananAlbum needs to be more horizontal, when it gets very small, otherwise the thumbnails cover the images. Can you suggest a way of dealing with this problem?

Grant


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Jan 9, 2009, at 9:43 AM, grantsymon wrote:

Fantastic Walter!

It works really well. And by chance, my site is ideally designed
for the resizing.

http://homepage.mac.com/grantsymon/Sites/English/piege_eng.html

A couple more questions if I may?

1/ Is there any way of making my copyright notice ‘stick’ to the
bottom of the iFrame?

You could try drawing it as a layer, floating it over the iframe, and
grouping the two of them. I’m not sure if that would work, it may act
like a plug-in and drill a hole straight through the page for your
iframe content.

2/ I know people here hate browser window resizing, but I think it’s
appropriate for photography sites, plus … as you may have noticed,
the resized bananAlbum needs to be more horizontal, when it gets
very small, otherwise the thumbnails cover the images. Can you
suggest a way of dealing with this problem?

Well the “nice” way to do this is with Spawn New Window and a button
– “click here for best viewing experience”. Define a window size
that’s ideal for your bananalbum, and set those properties in the
Action. But don’t make it load on, or (shudder) resize on, page load.
Some people get incredibly angry at that (raises hand sheepishly).

Walter

Grant


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oh, just re-read this and I think you might be wanting it to stick
below the iframe, not hover over it. In that case, drawing the
caption as a layer and grouping it with the iframe should work
correctly.

Walter

On Jan 9, 2009, at 9:43 AM, grantsymon wrote:

1/ Is there any way of making my copyright notice ‘stick’ to the
bottom of the iFrame?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It has taken a loong time for me to move this on, but with some further help from Mr. SkiFreak, I’ve now got this ‘dynamic iFrame’ working very well.

Thanks for your help Walter.

(The only thing that I’d like to be able to do still, is remove the (now redundant) scroll bars. If anyone can suggest a way, I’d be deliighted. :slight_smile: :slight_smile:

Grant


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options