Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjust frame width dynamically
Message
From
11/12/2003 14:04:53
 
 
To
All
General information
Forum:
Internet
Category:
DHTML
Title:
Adjust frame width dynamically
Miscellaneous
Thread ID:
00858271
Message ID:
00858271
Views:
63
I have two column frames.
First frame contains a table having variable width depending on the data rendered.
I want that frame border is set so the wholle first frame is visible and
after that the second frame starts immediately.

but there is a whice area between two tables. How to remove this?

Code to reproduce:

main.htm:
<frameset cols="*,*">
<frame id=frame1 src="frame1.htm">
<frame id=frame2 src="frame2.htm">
</frameset>
Both frame1.htm and frame2.htm can have same contents for this repro:
<table>
<tr><td>11</td><td>11</td><td>11</td></tr>
<tr><td>11</td><td>11</td><td>11</td></tr>
</table>
Observed result:

Frame border is in the center of page.

Expected result:

First frame width must be the same as width of its contents table.
Second frame must start immediately after first frame.
First frame width must be adjusted dynamically since it is very difficult to
calculate it in server side script.
Andrus
Reply
Map
View

Click here to load this message in the networking platform