473,805 Members | 1,981 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 2649
On Thu, 21 Oct 2004 21:12:04 -0700, Steve <ng*****@digita lnothing.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*****@digita lnothing.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*****@digita lnothing.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*****@digita lnothing.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.na me/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*****@digita lnothing.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.na me/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.********@dur ham.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

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

Similar topics

10
4871
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 change. Occasionally, it blows up with an Application Exception. It seems to only die at the customer site
3
12289
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 does not move with the main form. How can I "anchor" them so they move together? I do not want to put the panels directly on the tab control, as I want to keep them separate to allow
10
3387
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 'Color' in the first thread is fine. Any other thread that tries to modify the color in the property grid throws: "Controls created on one thread cannot be parented to a control on a
4
1724
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 there a way to dock on the left, right, and bottom side only?
8
10484
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 advance, and I hope the one-liner was non-offensive :)
3
11203
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 to dock a winform on a winform? Thanks Torben
3
12561
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 redock my toolstrip and menustrip. Now the toolstrip is always top most. I added a new MDI Parent form and can't find any differences. How do I get the menustrip to be top most? Also, is there a way to get the menu strip items (opening of a...
3
12021
by: Sugandh Jain | last post by:
Hi, I am using property like this.. private DateTime? _propName; public DateTime? PropName { get { return _propName; }
9
2392
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 Public Class FormContainer Inherits System.Windows.Forms.Form
0
9596
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10360
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9185
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7646
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5542
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4323
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
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.