473,410 Members | 1,904 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,410 software developers and data experts.

"Dock" a menu?

Is it possible to "dock" a menu, to basically achieve the same effect as
frames without using frames? Is JavaScript required(to continually
reposition the element), or can it all be achieved using CSS?

Thanks,
Steve
Jul 21 '05 #1
11 2615
On Thu, 21 Oct 2004 21:12:04 -0700, Steve <ng*****@digitalnothing.com>
wrote:
Is it possible to "dock" a menu, to basically achieve the same effect as
frames without using frames?
If you're referring to screwing up bookmarking and the usability problems,
nothing beats frames.

If you're referring to having a permanently positioned navigation area,
sort of. With SSI or PHP, you can include the code for the nav area in
each page, and then use CSS to position it where you want eternally.
Is JavaScript required(to continually reposition the element), or can it
all be achieved using CSS?


All CSS. Never, ever rely on Javascript. It's an enhancement, never a
requirement.
Jul 21 '05 #2
Steve wrote:
Is it possible to "dock" a menu, to basically achieve the same effect as
frames without using frames? Is JavaScript required(to continually
reposition the element), or can it all be achieved using CSS?


Check out "position: fixed".
Beware, however, that today's versions of a certain well-known browser
from Redmond don't yet support this.... :-(

Jul 21 '05 #3
Neal <ne*****@yahoo.com> writes:
On Thu, 21 Oct 2004 21:12:04 -0700, Steve <ng*****@digitalnothing.com>
wrote:
Is JavaScript required(to continually reposition the element), or
can it all be achieved using CSS?


All CSS. Never, ever rely on Javascript. It's an enhancement, never a
requirement.


Never, ever rely on CSS. It's an enhancement, never a requirement.

--
Chris
Jul 21 '05 #4
Chris Morris wrote;
Neal <ne*****@yahoo.com> writes:
On Thu, 21 Oct 2004 21:12:04 -0700, Steve <ng*****@digitalnothing.com>
wrote:
Is JavaScript required(to continually reposition the element), or
can it all be achieved using CSS?


All CSS. Never, ever rely on Javascript. It's an enhancement, never a
requirement.


Never, ever rely on CSS. It's an enhancement, never a requirement.


And in this case, it is easy to make it so. As if person doesn't have Js
of CSS, he will (if don't that is big problem) have normal menu. Normal
menu is usually much better than docked, so no problem...
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #5
Alexander Fischer wrote:
Steve wrote:
Is it possible to "dock" a menu, to basically achieve the same effect
as frames without using frames? Is JavaScript required(to continually
reposition the element), or can it all be achieved using CSS?

Check out "position: fixed".
Beware, however, that today's versions of a certain well-known browser
from Redmond don't yet support this.... :-(


Can you point me to any known workarounds if any? This is for an
intranet site, and JS is already a requirement, so if it's necessary it
won't be a problem.

Thanks,
Steve
Jul 21 '05 #6
Steve wrote:
Alexander Fischer wrote:
Steve wrote:
Is it possible to "dock" a menu, to basically achieve the same effect
as frames without using frames? Is JavaScript required(to continually
reposition the element), or can it all be achieved using CSS?


Check out "position: fixed".
Beware, however, that today's versions of a certain well-known browser
from Redmond don't yet support this.... :-(


Can you point me to any known workarounds if any? This is for an
intranet site, and JS is already a requirement, so if it's necessary it
won't be a problem.


http://devnull.tagsoup.com/fixed/ has a good workaround and explanation
thereof

P
Jul 21 '05 #7
Steve <ng*****@digitalnothing.com>:
Alexander Fischer wrote:
Check out "position: fixed".
Beware, however, that [IE] don't yet support this.... :-(
Can you point me to any known workarounds if any? This is for an
intranet site,


The best workaround is easy: install a browser, which deserves that title.
and JS is already a requirement, so if it's necessary it won't be a
problem.


Otherwise you might want to try out <http://dean.edwards.name/IE7/>, a JS
patch collection for IE*5+.

--
"Put it back in the horse!"
H. Allen Smith, after he drank his first American beer at a bar
Jul 21 '05 #8
Steve <ng*****@digitalnothing.com>:
Alexander Fischer wrote:
Check out "position: fixed".
Beware, however, that [IE] don't yet support this.... :-(
Can you point me to any known workarounds if any? This is for an
intranet site,


The best workaround is easy: install a browser, which deserves that title.
and JS is already a requirement, so if it's necessary it won't be a
problem.


Otherwise you might want to try out <http://dean.edwards.name/IE7/>, a JS
patch collection for IE*5+.

--
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass has an appropriate reserve space.
To the economist, the glass is twice as big as it needs to be.
Jul 21 '05 #9
Chris Morris <c.********@durham.ac.uk> wrote:
Neal <ne*****@yahoo.com> writes:
Steve wrote:
> Is JavaScript required(to continually reposition the element), or
> can it all be achieved using CSS?

All CSS. Never, ever rely on Javascript. It's an enhancement, never a
requirement.

Never, ever rely on CSS. It's an enhancement, never a requirement.


Touche. But for the OP's purposes, CSS is the correct method.

If JS is not present, the result is a mess. If CSS is not present, the
page degrades, hopefully well if designed that way.
Jul 21 '05 #10
Neal wrote;
Chris Morris <c.********@durham.ac.uk> wrote:
Neal <ne*****@yahoo.com> writes:
Steve wrote:
> Is JavaScript required(to continually reposition the element), or
> can it all be achieved using CSS?
All CSS. Never, ever rely on Javascript. It's an enhancement, never a
requirement. Never, ever rely on CSS. It's an enhancement, never a requirement.


Touche. But for the OP's purposes, CSS is the correct method.

If JS is not present, the result is a mess.


Only if done badly. Of course, JS is used badly 99 times from 100
If CSS is not present, the
page degrades, hopefully well if designed that way.


BTW, it might be even better sometimes to degrade so that full menu is
not available. Long menues are especially annoying when using some device
that doesn't have lots of screenspace. Those often are situations where
CSS/JS is not available.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #11
On Fri, 22 Oct 2004 22:18:12 +0300, Lauri Raittila
<la***@raittila.cjb.net> wrote:
Neal wrote;
If CSS is not present, the
page degrades, hopefully well if designed that way.


BTW, it might be even better sometimes to degrade so that full menu is
not available. Long menues are especially annoying when using some device
that doesn't have lots of screenspace. Those often are situations where
CSS/JS is not available.


Or place a short quick-menu first, then the page content, and follow
it with the full menu. Position everything with css so that for
css-enabled browsers the menus appear where you want them (i.e.
top/side/whatever) and for those without css the default rendering
places the long menu after the content. A link in the quick-menu to
the full menu helps the visitor get to the full menu faster than
scrolling.

Lemming
--
Curiosity *may* have killed Schrodinger's cat.
Jul 21 '05 #12

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

Similar topics

10
by: gregory_may | last post by:
I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab. When I am using it at a customer site, things...
3
by: A.C. Jetter | last post by:
I am using C# in Visual Studio.Net to create an application. The problem I am having is when the main form is moved around on the screen, the "panel" form that is displayed on the tab control...
10
by: jaire | last post by:
In my application I have two threads. Each of them creates a new propertygrid. In the property grid I have a property with a color editor. Whenever i am clicking on the combo box to change the...
4
by: Keith Smith | last post by:
By looking at the properties of my control (tabControl) it looks like I have the choice of docking the size to my form on either one sigle side (left, right, top, bottom) or all sides (fill). Is...
8
by: Newsgroups | last post by:
Q: How many licks DOES it take to get to the center of a Tootsie Pop? err... on a more serious note: What is the VB.NET equivalent of the VB 6.0 "control.SetFocus()" event? Thanks in...
3
by: Torben Laursen | last post by:
Hi Is there a component in c# like the Frame in Delphi. I'm looking for a way to handle a large number of component in one winform and a frame style component could do the trick. Or is possible...
3
by: Brett Romero | last post by:
I have an MDI Parent form with a toolstrip and menustrip. The menustrip is always the top most. Both are Docked to Top. I contemplated using a toolstripcontainer but then removed it. I had to...
3
by: Sugandh Jain | last post by:
Hi, I am using property like this.. private DateTime? _propName; public DateTime? PropName { get { return _propName; }
9
by: Anil Gupte | last post by:
I have a MDI Parent Child set of forms FormContainer --MDIParent FormStart --MDIChild FormMain-->MDIChild FormSliceInfo-->MDIChild I use the following in the beginning of FomrContainer ...
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
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...
0
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,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.