Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Frameset problem, help!

 
Thread Tools Search this Thread
Old 02-07-2004, 11:14 PM   #1
Default Frameset problem, help!


Hi there,

Can someone analyse my website www.elmiri.com and tell me why my
frameset doesn't work properly?

When I click on the links in the left frame, a new window opens instead
of my mainFrame.

Thanks,

John


John Smith
  Reply With Quote
Old 02-07-2004, 11:40 PM   #2
Jukka K. Korpela
 
Posts: n/a
Default Re: Frameset problem, help!

John Smith <> wrote:

> Can someone analyse my website www.elmiri.com and tell me why my
> frameset doesn't work properly?


I don't think you really want to know that... But here's a starter:

FRAME: topFrame
FRAME: leftFrame
FRAME: mainFrame

If this is what your browser spoke to you, what idea would you get
about the site, and which of the frames would you select?

Read my lips: no frames. No, I don't mean <noframes> (though it would
mean a marginal improvement).

> When I click on the links in the left frame, a new window opens
> instead of my mainFrame.


This is somewhat obscure, but browsers are known to treat frame names
as case sensitive. You have use name="mainFrame" in the <frame> tag but
target="mainframe" in some links, and popular browsers then regard
"mainframe" as a new name and create a new window. On IE 6, if you only
follow links with target="mainFrame", they open in the frame, but - for
some odd reason - once you have followed a link with target="mainframe"
and thereby created a new window, then even the links with the right
spelling start opening new windows. This normally does not happen
(normally browsers re-use the newly opened window when you follow links
with the same target attribute value), so I'm a bit puzzled.

But if you stop using frames, you stop creating problems like that. You
don't need any fancy navigation. Just a handful of links on the main
page, and links back to the main page from the subpages.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


  Reply With Quote
Old 02-07-2004, 11:44 PM   #3
Inger Helene Falch-Jacobsen
 
Posts: n/a
Default Re: Frameset problem, help!

John Smith wrote:
> Hi there,
>
> Can someone analyse my website www.elmiri.com and tell me why my
> frameset doesn't work properly?
>
> When I click on the links in the left frame, a new window opens
> instead of my mainFrame.


Frame names/targets are case-sensitive, so be sure you are consistent.
From the code of your menu:
a href="nl/search.aspx" target="mainframe"
search.aspx (Zoek & Boek) is the only page that opens in a new window, the
others have the right "target".

Of course, all those problems can be avoided by not using frames...

--
Inger Helene Falch-Jacobsen
http://home.online.no/~ingerfaj/



  Reply With Quote
Old 02-08-2004, 09:01 AM   #4
Steve R.
 
Posts: n/a
Default Re: Frameset problem, help!

John Smith wrote in message ...
> Can someone analyse my website www.elmiri.com and tell me why my
> frameset doesn't work properly?
> When I click on the links in the left frame, a new window opens instead
> of my mainFrame.


The name of your Frame in the HTML is mainFrame.

But your link in your menu points to target="mainframe"

If you change that in your menu to target= "mainFrame" it will work :~)

Just a case of a *CAPITAL* F.


  Reply With Quote
Old 02-09-2004, 10:11 PM   #5
Zak McGregor
 
Posts: n/a
Default Re: Frameset problem, help!

On Sun, 08 Feb 2004 01:14:53 +0200, John Smith <"John Smith"
<>> wrote:

> Hi there,
>
> Can someone analyse my website www.elmiri.com and tell me why my
> frameset doesn't work properly?
>
> When I click on the links in the left frame, a new window opens instead
> of my mainFrame.


You forgot the First Rule of Frames: don't use them!

Ciao

Zak

--
================================================== ======================
http://www.carfolio.com/ Searchable database of 10 000+ car specs
================================================== ======================
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump