Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adjust frame width dynamically
Message
De
11/12/2003 14:04:53
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
DHTML
Titre:
Adjust frame width dynamically
Divers
Thread ID:
00858271
Message ID:
00858271
Vues:
62
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
Répondre
Fil
Voir

Click here to load this message in the networking platform