PDA

View Full Version : Iframe SSI script II problem with nested iframes



clandestino_bgd
11-07-2005, 05:22 PM
Script: Iframe SSI script II
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm


Hello DynamicDrive people.
I am using Iframe SSI script II for dynamic height adjustment, but I am facing the problem how to adjust heights of nested iframes.


Here is my situation:

I have
page1.html
|
- mainFrame
|
- page2.html
|
- navigation bar with two options A and B
- subFrame
|
- pageA.html and pageB.html which are loaded when option A or B
is chosen.

... and put in your script "mainFrame" and "subFrame" in iframeIds array.

pageA is much longer than pageB, so if I choose option B after pageA is loaded in "subFrame", I get empty space below "subFrame" because "mainFrame" has not been resized.
More important if I choose option A after pageB is loaded, pageA is trimmed, again becuse "mainFrame" has not been resized.

So the question is, how could I resize "mainFrame" too?
I tried almost everything (different events), but I do not have a clue how to resize mainFrame, depending on document height loaded in "subFrame".
Can this script be modified in a way that handled the case of nested iframes?

Thanx a lot for your response
Kind regards
Milan

clandestino_bgd
11-09-2005, 02:48 PM
Hi all,
I see, nobody answers on my post.
I am really asking not for out-of-box solution, but only forconfirmation if it is feasable with existing script. And if yes, small hint, how it could be done.

Kind regards and thank you
Milan

clandestino_bgd
11-11-2005, 11:50 AM
Hi people,

Am I asking something stupid or what?
Any answer would be highly appreciated?

clandestino_bgd
11-21-2005, 10:49 AM
:(
:(
:(