Log in

View Full Version : more iframe distress



adamcromack
07-15-2006, 03:14 AM
i have looked through the various other threads on iframes and linking to them using the target attribute, but my situation is slightly different. The index of my homepage consists of table with a single row on top and two columns under that:

the top has a nav bar, the left has some news info, and the right is the main frame. all pages will load in this frame. This is one big table that is centered on the page, so iframes are used. I tried with regular framesets and i cannot do this because i need both bottom frames lined up with the edges of the top nav bar, which does not extend the full width of the page.

SOOO.....

I want all links to open into the main iframe - with id="main". i tried inserting the target="main" into all links, and they still only open in their respective frames. Does this have anything to do with the fact that the iframes are in a table? If there is a way I can get a fixed-width frameset to center on a page, I would just do that, but I havn't found anything saying that it is remotely possible, so I guess I will keep trying with this. Hope I didnt confuse anyone with my ranting..

Jesdisciple
07-15-2006, 03:29 AM
Got it. Change your ID attribute to NAME. Took me a lot of time and a guess, but I got it. :)

adamcromack
07-15-2006, 03:54 AM
Got it. Change your ID attribute to NAME. Took me a lot of time and a guess, but I got it. :)
seem like it would work. i shall give it a try tomorrow.

adamcromack
07-15-2006, 04:12 PM
The links are now opening in the correct frame, but I have a slightly different problem. Feel free to move this post if needed, but I have some javascript that auto resizes the main iframe according to whatever its contents are. The issue is, when I load a different page into it than what is already in there by default, it fails to resize it. Is there something else I need to do to get this to be resized each time it is refreshed?