473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

iframe problem in firefox

Hello,

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">
</iframe>
</div>

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.

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 did NOT specify
target = "_new"; how can this happen?

Any assistance is greatly appreciated! Thanks!
Feb 6 '06 #1
6 14987
Valued Customer wrote:

Odd name you have there...
<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">
</iframe>
</div>


Problems:

1. Your markup is invalid. You missed a </iframe>. The validator would have
told you that.

2. You seem to be trying to use iframes to duplicate the effects of the
better supported (normal) frames.

3. Frames are harmful.
http://allmyfaqs.net/faq.pl?Problems_with_using_frames

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 6 '06 #2

Valued Customer wrote:
Hello,

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">
</iframe>
</div>

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.

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 did NOT specify
target = "_new"; how can this happen?

Any assistance is greatly appreciated! Thanks!

My article on Useing Frames can be found at:
http://freewebdesign.cjb.cc/design-tips1.html
--
Regards Chad. http://freewebdesign.cjb.cc

Feb 6 '06 #3
In message <11*********************@g43g2000cwa.googlegroups. com>,
Chaddy2222 <ro***********@yahoo.com.au> writes

Valued Customer wrote:
Hello,

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">
</iframe>
</div>

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.

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 did NOT specify
target = "_new"; how can this happen?

Any assistance is greatly appreciated! Thanks!

My article on Useing Frames can be found at:
http://freewebdesign.cjb.cc/design-tips1.html


Can I suggest you:

(a) read up on how to design a frames-based site,
(b) get some experience by coding one,
(c) re-write http://freewebdesign.cjb.cc/design-tips1.html in the light
of what you learn.

Regards.
--
Jake (ja**@gododdin.demon.co.uk -- just a 'spam trap' mail address)
Feb 6 '06 #4
On Mon, 6 Feb 2006 23:34:30 +0000, Jake <ja**@gododdin.demon.co.uk>
wrote:

Can I suggest you:

(a) read up on how to design a frames-based site,
Don't want to use the frameset tag... perfectly familiar with it
though
(b) get some experience by coding one,


Trying to... but wasting too much time reading tearse replies from
wise guys like you who spend more energy flaming folks than being even
remotely helpful. It's easy to be a tough guy from behind the
anonymity of a keyboard, but remember a little bit of courtesy goes a
long way... especially since you were a rookie once.

Amazing... all that effort and you didn't address my questions. Yes I
missed a closing </iframe>. But that didn't fix any of the problems
with using FireFox.
Feb 7 '06 #5
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

Feb 7 '06 #6
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

Feb 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: NoCopy na | last post by:
Using the following example: domiframetest.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
12
by: wangzx | last post by:
I am the author of easyajax.sourceforge.net, and I have a problem on Firefox 1.5, I post the problem here and hopes somebody help me. The test page can be:...
1
by: juergen.riemer | last post by:
Hi, I just learned that firefox (v 1.5.0.3) chops any content of an iframe that exeeds 2^15 (=32768) pixels i.e. in height? Any idea what went wrong or is this a bug/feature? I am using this...
2
by: cont | last post by:
Hi I have the following simple page: <HTML> <TITLE>Test</TITLE> <HEAD> <script language="javascript"> function doSubmit() { alert('test'); window.frames.item(0).updateParent();
1
by: Dave | last post by:
Usual apologies if this is old territory. I'm resizing a bunch of iframes on a page to the height of their contained documents. Some of the contained documents contain IMG tags. On IE this...
3
by: Alexander Higgins | last post by:
Hello, I would like to thank everyone for there help in advance. I have form which is using an iframe as a Rich Text Editor. Everything works as expected in IE but I have two issues with...
12
by: mistral | last post by:
Can anybody tell me how to get source code of page in iframe? (popup window is clickable image). When I right click on this popup border to view source, i see just as follows <html> <head>...
3
by: CAG | last post by:
Hello, I have following scenario in my web application. I want to load different web forms in single iframe. Iframe in contained in an ASP page. ASP page has “Submit” button, which submits iframe...
1
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html page. The html page has an iFrame too. When the...
1
by: SunshineInTheRain | last post by:
My project has 3 files, File1 has included master page. file1 consists of iframe1 that load file2. File2 consists of iframe2 that load file3. Javascript used on each file to resize the iframe...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.