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
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