Click here to get back home

iframe problem in firefox

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
iframe problem in firefox Valued Customer 02-05-2006
Get Chitika Premium
Posted by Steve Pugh on February 7, 2006, 8:14 am
Please log in for more thread options


Valued Customer wrote:

> I'm really at a loss here. I have the following index.html:
>
> <div align="center">
> <iframe src="left.htm" width="15%" height="100%" frameborder="0"
> name="left" target="contents">
> <iframe src="main.htm" width="85%" height="100%" frameborder="0"
> name="main" scrolling = "no">

For accessibility, giving meaningful names to the iframes would help.
Left and Main are not meaningful.

> </iframe>
> </div>

Presumably you also have some fallback content in the real page?

> In left.htm, is code prett much for navigation. I'm using links like
> this:
>
> <A href="pages/FL000001.htm" target="main">
>
> When using IE, everything works great. The user clicks on something
> on the left and it appears in the correct target.
>
> However when using FireFox there's two issues:
>
> 1. I want a 15/85 proportion of menu to main window on the screen.
> When using FF, it gives an equal amount of space to each frame... in
> spite of the dimensions I specified in the width properties above.

When I use the code above (plus the missing </iframe>) I get one frame
at 15% width and one at 85% width. That's in Firefox 1.0.7 with a
doctype that triggers standards mode. Which version of FF are you using
and which display mode does your doctype trigger?

The two iframes are displayed one above the other, as one would expect
from the code you gave. To get them to display side by side requires
some CSS. (a simple float: left on the first iframe does the trick in
my basic test).

As you haven't provided a URL we can't see your CSS and the rest of
your HTML so we can't even begin to guess what you've done wrong.

> 2. In FF, when a user clicks a link on the left, it doesn't open in
> the target "main", it opens in a new window?!?!...

I can't be bothered to create content pages as well as a sample
frameset. Post the URL so we can see the actual problem in all its
details.

> I did NOT specify target = "_new"; how can this happen?

I think you mean target="_blank", target="_new" is not allowed as per
the HTML spec.

Steve


Posted by Steve Pugh on February 7, 2006, 8:14 am
Please log in for more thread options


Valued Customer wrote:

> I'm really at a loss here. I have the following index.html:
>
> <div align="center">
> <iframe src="left.htm" width="15%" height="100%" frameborder="0"
> name="left" target="contents">
> <iframe src="main.htm" width="85%" height="100%" frameborder="0"
> name="main" scrolling = "no">

For accessibility, giving meaningful names to the iframes would help.
Left and Main are not meaningful.

> </iframe>
> </div>

Presumably you also have some fallback content in the real page?

> In left.htm, is code prett much for navigation. I'm using links like
> this:
>
> <A href="pages/FL000001.htm" target="main">
>
> When using IE, everything works great. The user clicks on something
> on the left and it appears in the correct target.
>
> However when using FireFox there's two issues:
>
> 1. I want a 15/85 proportion of menu to main window on the screen.
> When using FF, it gives an equal amount of space to each frame... in
> spite of the dimensions I specified in the width properties above.

When I use the code above (plus the missing </iframe>) I get one frame
at 15% width and one at 85% width. That's in Firefox 1.0.7 with a
doctype that triggers standards mode. Which version of FF are you using
and which display mode does your doctype trigger?

The two iframes are displayed one above the other, as one would expect
from the code you gave. To get them to display side by side requires
some CSS. (a simple float: left on the first iframe does the trick in
my basic test).

As you haven't provided a URL we can't see your CSS and the rest of
your HTML so we can't even begin to guess what you've done wrong.

> 2. In FF, when a user clicks a link on the left, it doesn't open in
> the target "main", it opens in a new window?!?!...

I can't be bothered to create content pages as well as a sample
frameset. Post the URL so we can see the actual problem in all its
details.

> I did NOT specify target = "_new"; how can this happen?

I think you mean target="_blank", target="_new" is not allowed as per
the HTML spec.

Steve


Similar ThreadsPosted
IFrame align="center" in Netscape and Firefox May 17, 2005, 4:41 pm
iframe problem June 27, 2005, 7:10 am
iframe scrolling problem December 1, 2004, 5:11 am
Mozila Firefox: iframe keep relocate its position when set display block/hiden of another html component? October 11, 2004, 3:57 pm
A FireFox problem: with pre and ex September 13, 2006, 9:39 am
DIV Scrollbar problem in FireFox... May 23, 2005, 7:01 am
Form problem and Firefox April 6, 2006, 7:54 am
html4/strict.dtd & IE/firefox problem April 21, 2005, 9:34 am
Table layout problem in Firefox/IE6 June 14, 2005, 8:42 am
Problem with Firefox viewing html January 22, 2007, 4:50 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap