473,563 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hier menu in frameset

Hello everyone, I need help.

I'm using a hierarchical menu made in javascript.

When I used it in a one frame page, it came out fine. But now I need to change my page to 3 frames: a top frame, a left frame and a right frame.

The menu is on the top frame and when hovering the categories, the sections appear under the left and right frame.

How do I solve that problem? (I use Dreamweaver.) Thanks for all your answers.

_______________ ____

Marie-Perle
www.mpmultimedia.ca
Jul 20 '05 #1
12 3376
MP Multimedia wrote:
I'm using a hierarchical menu made in javascript.
Uh oh. That's very difficult to do right (some would say its impossible)
When I used it in a one frame page, it came out fine. But now I need to
change my page to 3 frames: a top frame, a left frame and a right frame.
You _need_ to change to frames? Why are you moving backwards? Even the
inventor of frames (Netscape) removed them from their homepage after 6
months becuase they realised how much they sucked.

http://stone.thecoreworlds.net/www/frames/
The menu is on the top frame and when hovering the categories, the
sections appear under the left and right frame. How do I solve that problem?


Create identical content in the other frames and line them up very very
carefully.

Or ditch the frames.

Or ditch the silly menus.

Or both.

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 20 '05 #2
That was no help at all. lol

"David Dorward" <do*****@yahoo. com> wrote in message
news:be******** ***********@new s.demon.co.uk.. .
MP Multimedia wrote:
I'm using a hierarchical menu made in javascript.


Uh oh. That's very difficult to do right (some would say its impossible)
When I used it in a one frame page, it came out fine. But now I need to
change my page to 3 frames: a top frame, a left frame and a right frame.


You _need_ to change to frames? Why are you moving backwards? Even the
inventor of frames (Netscape) removed them from their homepage after 6
months becuase they realised how much they sucked.

http://stone.thecoreworlds.net/www/frames/
The menu is on the top frame and when hovering the categories, the
sections appear under the left and right frame.

How do I solve that problem?


Create identical content in the other frames and line them up very very
carefully.

Or ditch the frames.

Or ditch the silly menus.

Or both.

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead

Jul 20 '05 #3
Richard Cornford wrote:
I am optimistic and believe that a hierarchical menu script can be
written to address the problems of cleanly degrading on JavaScript
disabled and unsupportive/insufficiently dynamic browsers,
accessibility
There are two big problems with h-menus in general.

(1) people with motor skill problems (although activating onclick and
onfocus can go a long way to dealing with this).

(2) People using screen scrapers. Its unfortunate that most software
products for reading webpages aloud are not true aural browsers (parsing
the HTML, and applying aural CSS), but instead are Internet Explorer screen
scrapers. From what I hear, they don't react well to pages gaining new
visible elements dynamically.
David's other proposal (I suspect tongue in cheek)


I have been known to go tongue in cheek, but this time I was serious. Its
difficult, impractical and time consuming - but just about possible.
--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 20 '05 #4
Thank you Richard for explaining this to me. Your explanation was very
helpful.

The reason I have to add frames on the page is because the client
specifically asked for it. And the menu has already been validated by him.

I forgot about search engines not reading framesets, that is a good reason
not to use them.

I guess what I have to do now is convice my client not to use pages with
framesets.

Thanks again.

_______________ ____

Marie-Perle
www.mpmultimedia.ca
"Richard Cornford" <Ri*****@litote s.demon.co.uk> wrote in message
news:be******** ***********@new s.demon.co.uk.. .
"MP Multimedia" <mp**********@v ideotron.ca> wrote in message
news:Z9******** ************@wa gner.videotron. net...
I'm using a hierarchical menu made in javascript.

Uh oh. That's very difficult to do right (some would
say its impossible)When I used it in a one frame page, it came out fine. But
now I need to change my page to 3 frames: a top frame, a
left frame and a right frame.You _need_ to change to frames? Why are you moving backwards? ... <snip>http://stone.thecoreworlds.net/www/frames/

The menu is on the top frame and when hovering the categories,
the sections appear under the left and right frame.

How do I solve that problem?

Create identical content in the other frames and
line them up very very carefully.

Or ditch the frames.

Or ditch the silly menus.

Or both.

That was no help at all. lol


It may not seem to be much help but David has laid out the options much
as I see them. He clearly prefers the "ditch the frames" solution and I
also think that would be the simplest solution. Re-thinking the
reasoning behind the choice of a frameset; are they really the only way
of achieving the desired results?

Re-thinking the choice of navigation is the next option. Given a
frameset, is hierarchical menu style navigation appropriate? Menu
scripts are not easy, a lot of the time they are written in the
optimistic belief that they will only ever be exposed to one ore two
versions of the commonest browsers with JavaScript enabled, and when
exposed to anything else the navigation vanishes. Leaving
non-run-of-the-mill visitors and search engine robots wondering why they
bothered and moving on to the next site on their list.

I am optimistic and believe that a hierarchical menu script can be
written to address the problems of cleanly degrading on JavaScript
disabled and unsupportive/insufficiently dynamic browsers,
accessibility, keyboard navigation, etc, etc. In fact I was working on
such a script yesterday, but I haven't even finished working out what
all the issues are, let alone come up with strategies for tackling them
all yet. And David is right, "very difficult to do right" is no
underestimation , and navigation is something than needs to be done
right.

David's other proposal (I suspect tongue in cheek) is the only option
that stands a chance of working with frames cross-browser. Reproducing
the menu in each frame and lining them up is doable in at least the
major browsers. It requires different approaches to working out the
differences in the positions of the frame view-ports to take into
account the apparent absence of standardisation in frameset DOMs. And a
truly general solution is probably impractical, as that would be
required to handle indefinitely nested framesets and iframes. There is
also an added complexity because exposing elements that extend beyond
the frame's view-port will often also bring scroll bars into existence
so it is probably best to also be clipping each element to the
constraints of its own view-port. In all, a big complex script that
would probably be best tailored to a specific frameset and is still
going to be difficult to arrange to cleanly degrade to usable navigation
of unsupportive browsers.

Richard.

Jul 20 '05 #5
"David Dorward" <do*****@yahoo. com> wrote in message
news:be******** ***********@new s.demon.co.uk.. .
I am optimistic and believe that a hierarchical menu script
can be written to address the problems of cleanly degrading
on JavaScript disabled and unsupportive/insufficiently
dynamic browsers, accessibility
There are two big problems with h-menus in general.

(1) people with motor skill problems (although activating
onclick and onfocus can go a long way to dealing with this).


Yes, keyboard navigation is essential, though that is as much for laptop
users who have learnt all the keyboard shortcuts (so they can avoid
using the built in "pointing device") as anyone else.
(2) People using screen scrapers. Its unfortunate that most
software products for reading webpages aloud are not true
aural browsers (parsing the HTML, and applying aural CSS),
but instead are Internet Explorer screen scrapers. From what
I hear, they don't react well to pages gaining new visible
elements dynamically.


I have often wondered how an aural browser would implement the dynamic
DOM level 2 interfaces (createElement, appendChild, and so on). What
should it do if a text node was inserted? Suddenly blurt out the text,
start reading the document again from the beginning or ignore the
insertion? In the latter case it would make most sense to never
implement the interface at all as at least that could be detected by a
script.

The thing that seems to distinguish h-menus from the tree-menu
alternatives is the need to use CSS that will potentially render the
contents of the nested ULs [1] inaccessible (display:inline ; on the top
level items and position:absolu te;, visibility:hidd en;/dispaly:none; on
the sub menus). My strategy is to have an external CSS provide most of
the styling for the ULs but to use JavaScript in the HEAD of the page to
write out a STYLE section that introduces the critical CSS. Obviously in
the absence of JavaScript the ULs retain their externally specified (or
default) display characteristics so clean degradation is achieved.

The viability of the exercise hangs on the ability of the script to make
the right decision about writing out that STYLE section. If it decides
not to then it only has to disable it's own initialisation routine and
everything degrades to a usable UI. If it decides to insert the STYLE
section it must be 100% certain that the browser will fully support the
menu script and that the result will be suitably usable UI. I am
confident that detecting suitably dynamic browser support is realistic
but, as you point out, being confident that the result will be a usable
UI under all circumstances is another question. I will have to resolve
that question to my own satisfaction through experimentation , which will
either tell me how it can be done or why it cant be done (either of
which will be useful knowledge).
David's other proposal (I suspect tongue in cheek)


I have been known to go tongue in cheek, but this time I was
serious. Its difficult, impractical and time consuming - but
just about possible.


I didn't mean to imply that you did not think that it was doable. I was
hoping to suggest that its presence in the list was merely to provide a
comprehensive list of alternatives and that you were not presenting it
as a realistic course of action. Given your undisguised preference for
the elimination of frames and your describing the simultaneous aligning
of elements across a frameset as "difficult, impractical and time
consuming" I don't think that you do consider it a realistic course of
action when compared with your 3 other suggestions.

A few weeks ago I wrote a script that aligned a DIV in each frame of a
frameset (to the mouse pointer) in response to a question on the group.
It was not good enough to be more than a demonstration of the principal
but it was enough to give me a reasonable handle on the issues. I learnt
that it would be much easier to tailor such a script to a known
frameset, which is why I don't think that there will be an adequate
off-the-shelf solution available. I am confident that it can be done (to
the extent that the menu itself can) but the prospect of layering that
requirement on top of the menu script and implementing it for each page
that may pass through the frameset is daunting.

Richard.

[1] Like many others, I have concluded that nested ULs are the only
sensible mark-up to use as the basis for this type of menu, as they
offer a familiar and usable presentation of the hierarchical navigation
structure in the absence of both CSS and JavaScript.
Jul 20 '05 #6
MP Multimedia wrote:
The reason I have to add frames on the page is because the client
specifically asked for it.


Client: "Fix my car! Use this spanner!"

Mechanic: "But my collection of spanners include ones that will do the job
efficiently! That won't even fit!"

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 20 '05 #7
On Fri, 11 Jul 2003 20:12:23 +0100, David Dorward <do*****@yahoo. com>
wrote:
MP Multimedia wrote:
The reason I have to add frames on the page is because the client
specifically asked for it.


Client: "Fix my car! Use this spanner!"

Mechanic: "But my collection of spanners include ones that will do the job
efficiently! That won't even fit!"


That's right. Tell your client to go to hell. And don't forget to
screw his wife and kick his cat on your way out the door.
Jul 20 '05 #8
Foobus Barrius wrote:
That's right. Tell your client to go to hell. And don't forget to
screw his wife and kick his cat on your way out the door.


No, point out that you are the expert and that while the technology he
thinks is good may work for him, it will cause major problems for at least
some of his customers.

If the client was an expert at web authoring, he probably wouldn't hire
someone else to do it for him. (And if I was an expert at fixing cars
Iwouldn't hire a mechanic)

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead
Jul 20 '05 #9
Now my client wants 4 frames on the site.

I found a hier menu at www.dynamicdrive.com to be used with frames. Trying
it.

_______________ ____

Marie-Perle
www.mpmultimedia.ca

"David Dorward" <do*****@yahoo. com> wrote in message
news:be******** ***********@new s.demon.co.uk.. .
Foobus Barrius wrote:
That's right. Tell your client to go to hell. And don't forget to
screw his wife and kick his cat on your way out the door.


No, point out that you are the expert and that while the technology he
thinks is good may work for him, it will cause major problems for at least
some of his customers.

If the client was an expert at web authoring, he probably wouldn't hire
someone else to do it for him. (And if I was an expert at fixing cars
Iwouldn't hire a mechanic)

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead

Jul 20 '05 #10

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

Similar topics

13
4987
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code I'm using: FrameSet ------------------------------------------------------- <html>
10
2016
by: John Ortt | last post by:
Hi Everyone, I have created a Javascript menu for my site which uses frames. The first stage loads fine but I want two drill down menus ("About Me Menu" and "Projects Menu"). The pages load fine, but the images aren't displayed, instead the alt text is shown. The images come up after you "Mouse Over" them but not before......can anybody...
2
1671
by: dawaves | last post by:
Hello, I'm new to javascript so bear with me.... I have a t-based frame site with my javascript-based menu on the left hand frame (ie NavFrame) with its submenus showing up on the right side frame (ie BodyFrame). Everytime I click on a submenu to show files in the body frame, the left frame menu stops being dynamic or clickable. Any ideas? ...
3
1737
by: comzy | last post by:
Can anyone tell me whether Menu Control given in VS.NET 2005 supports cross frame support? If not can anyone tell me how to achieve that? Thanks and Regards, Shiva.
1
1382
by: Joseph Scoccimaro | last post by:
Currently I am able to add my menu to a frameset that just uses rows with this code: if (window == top) { //this obtains the body tag element of the document var theBody = document.getElementsByTagName('body'); //this inserts our menu as the first element in the body theBody.insertBefore(menuDiv, theBody.childNodes);
2
1054
by: nil | last post by:
Hello Everyone .......i created menu using Css and HTML code..but i want it to display submenu when mouse is over on the horizontal strip...but it's not working and either it show all the menu or not when the page is loaded......so what should i do? and seconde problem is that i want it to show some option when user login and all option...
2
1945
by: camelot | last post by:
Hello, I've got a problem and I hope someone could help me. I have a page that contains frames. Below a piece of code: .... <FRAMESET COLS="120,*"> <FRAME NAME="menu" SRC="menu.html" > <FRAME NAME="main" SRC="main.html"> </FRAMESET> .... The page menu.html contains the following code:
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.