Closed Thread Icon

Topic awaiting preservation: frameset in an iframe in a table = ARRGGGG..!! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8952" title="Pages that link to Topic awaiting preservation: frameset in an iframe in a table = ARRGGGG..!! (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: frameset in an iframe in a table = ARRGGGG..!! <span class="small">(Page 1 of 1)</span>\

 
pwhitrow
Bipolar (III) Inmate

From: UK
Insane since: Feb 2002

posted posted 11-20-2003 18:04

Guys,

I have the following..

An iframe contained in a table thus:
<table height="100%" width="100%">
<tr>
<td>
<iframe height="100%" width="100%" src="forum.html"></iframe>
</td>
</tr>
</table>


and a file named forum.html that contains thus:
<html>
<head>
<title> Forum </title>
</head>

<frameset rows="44,250,*">
<frame src="forumCats.html" name="frame0" noresize>
<frame src="forumThreads.php?CAT=main" name="frame1">
<frame src="forumViewer.php" name="frame2">
</frameset>

<body>
</body>
</html>

The problem is that when the bounding iframe is contained within the table cell, the frameset that is loaded into the iframe will not resize, remove the bounding iframe from the table and the frameset will resize.
I need the frameset to be able to resize when contained within an iframe that is contained within a table cell (hope that all makes sense).

PLEASE someone help me out on this..???

Paul

www.pwhitrow.com

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 11-20-2003 20:37

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 11-20-2003 20:37

Let me see if i understand you right.

You want a frame(set) inside a (i)frame inside a table on a page? And you want to resize the inner frame to it's contents?

First is this realy needed? since it will extremly slow down the loading of your page....
The table only show when it's fully loaded, which could only happen if the frame which is part of the contents is loaded which in turn has to load it's contents (the frameset) first.

Now here is something you could try:
-Replace the table with one or more divs.
-Remove the height=100% and width=100% from the iframe. Now the iframe will not size to all it's outside space but grow with the content (the frameset).

I strongly suggest you to not nest a frame inside a frame inside a table since none off these tags are meant to work in the way you used them and browsers are not meant to understand this. Thus browser could react very strange when you try.....



__________________________________________
"Art has to be forgotten. Beauty must be realized."
Piet Mondriaan

MajorFracas
Nervous Wreck (II) Inmate

From:
Insane since: Jul 2003

posted posted 11-20-2003 21:16

I think that you may have a more serious problem and that is: an iframe will not automatically resize itself to the natural size of the document it is hosting.

I have experimented with trying to have an iframe resize so that no scroll bars showed as new pages were loaded into the iframe. The solution I came up with involved javascript in the host page and the hosted page. In all, not a satisfactory solution.

I would suggest you consider other options. You'd have much more control and better results if you could do this sort of combination of files on the server side (e.g.: PHP, ASP, JSP).


Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 11-23-2003 15:10

Hey, you're a good programmer.
I don't need to tell you that if things get this complicated, there must be better ways...
So what are you up to?

Personally, I would skip both the frame and the iframe concept. There's only few things php templating can't solve..

pwhitrow
Bipolar (III) Inmate

From: UK
Insane since: Feb 2002

posted posted 11-23-2003 15:24

Thanks guys,

I guess there are betters ways to attack this, but the main page was setup in Dreamweaver (not my choice) so tables are abound !
The iframe sits in a cell in the left of the table, and the viewed pages are loaded into the iframe, that's why I want to solve this instead of having to re-write the layouts...

www.pwhitrow.com

« BackwardsOnwards »

Show Forum Drop Down Menu