Linked Frame Target: Opens in IE, Doesn't in FF

Linked Frame Target: Opens in IE, Doesn't in FF

Posted by: Mellowdrone
Posted on: 2006-05-28 08:53:00

Hey guys.

I'm trying to figure out what's up with a frame-linked target="" and why it opens correctly in Internet Explorer but opens a brand new window in Firefox.

The examples are below. My apologies for the sloppy work, but I've been trying to get this working properly for the past two or three hours or so and I just don't care about formatting at the moment.

The index page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>example</title>

</head>

<frameset cols="33%,66%">

<frame src="1sdleft2.html" scrolling="yes" />
<frame src="1sdright.html" name="content" scrolling="no" />
<noframes>
<body>
<p> </p>
</body>
</noframes>
</frameset>


</html>

The left frame:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>example</title>
</head>
<body>
<a href="1sdright2.html" target="content">1sdright</a>

</body>
</html>

The right frame:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>example</title>
</head>
<body>

1sdright.html

</body>
</html>

The right-linked frame:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>example</title>
</head>
<body>

1sdright2.html

</body>
</html>

Like I said earlier, things work fine in IE, but Firefox is a whole different matter -- why it opens in a brand new window is beyond me. Any idea why this is going on?

Edited by Mellowdrone on 05/28/06 08:56 AM (server time).

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: norm1037
Posted on: 2006-05-28 09:13:00

Have you tried adding TARGET="_self" to your links?


--
Norm

Opinions are my own views and are not the views of DreamHost.
Any advice offered by me should be acted upon only at your own risk.

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: anonymous2
Posted on: 2006-05-28 10:28:00

> things work fine in IE, but Firefox is a whole different matter -- why it opens in a brand new window is beyond me.

FF is flexible, and users can decide how they want links opened (new window, new tab, background, foreground). Yours isn't set to open links in new window?

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: matttail
Posted on: 2006-05-28 13:23:00

It's been a long time since I've used frames... but you might try setting target="body" and see what that does.

with a frames layout FF should ideally not be openning the links in a new page or new tab, regardless of user settings, it's supposed to open the page within what's already on screen.

I've got an HTML standards book around here somwhere... I might be able to figure out exactly how you're supposed to do this from that... But your best bet probably would be to use some more modern scripting. Frames are one of those things a lot of people say are 'so last mileminum' smile



--Matttail
art.googlies.net - personal website

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: Mellowdrone
Posted on: 2006-05-28 15:48:00

Here's what I've found out:

Apparently either the problem is a direct result of doctypes or DreamHost, and either of which I'm completely unsure of at this point. I've just tried the same html on a Lunarpages account. The Lunarpages account gave the same result until I removed the DOCTYPE, which then allowed the page to direct in FF as it should. If I remove the DOCTYPE on DreamHost and attempt to view the page I'm given a XML skeleton in FF and, if any errors are in the code, a given XML formatting warning stopping me from viewing the website. Also, while the XML skeleton shows in FF, it does not in IE.

I'm bumfuzzled.

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: matttail
Posted on: 2006-05-28 17:11:00

try setting your doc type for html 4.01 strict instead.



--Matttail
art.googlies.net - personal website

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: Mellowdrone
Posted on: 2006-05-28 19:21:00

Unfortunately HTML 4.01 Strict gave the same result.

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: matttail
Posted on: 2006-05-28 19:30:00

well, My best sigguestion at this point would be to ditch frames. Go for Div layers or CSS, or... Perhaps someone else will be able to help you fix this, but I'm all out of ideas.



--Matttail
art.googlies.net - personal website

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: scjessey
Posted on: 2006-05-28 19:47:00

You are using the wrong DOCTYPE for frames: Doctypes

Re: Linked Frame Target: Opens in IE, Doesn't in F

Posted by: dtobias
Posted on: 2006-06-02 17:50:00

Use the Frameset doctype for the frameset HTML document, and the Transitional doctype for the other documents that are intended to be loaded within frames. You should use the XHTML varieties of the doctypes (as you're doing) if you use the syntax that includes "/>" at the end of empty tags (as you do).

-- Dan

Tags: hey guysbrand newtargetinternet explorerapologiesfirefoxindexnew window