473,654 Members | 3,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can the Favourites Sidebar (IE, Opera, etc.) be addressed selectively (exist or non-exist)?

Hello,

tonight I'm looking for a javascript piece of code which enables me to
detect whether the user's internet browser has a favourites sidebar
open and thus limits the "display space" of the adjacent table to a
certain width.
Background: I have created a webpage based on a 2 vs. 4 table
structure:
table 01 table02
table 11 table12
table21 table22
table31 table32
Tables 01 - 31 contain the navigation layer, tables 02 - 32 contain
various contents. Tables 02 - 32 are open to the right side, i. e.
tables 01 - 31 have a defined width, tables 02 - 32 have the width of
"*".
Now, if a visitor to the website has his favourites sidebar open, the
width of tables 02 - 32 gets smaller ("* minus width of favourites
sidebar").
Is there any way to detect whether the favourites sidebar is open, and
of which width it is?

Sincerely
Markus Mohr
Jul 20 '05 #1
7 1623
Markus Mohr <ma*********@ma zimoi.de> writes:
tonight I'm looking for a javascript piece of code which enables me to
detect whether the user's internet browser has a favourites sidebar
open
Mine doesn't. Mostly because it has no favorites sidebar, it's called
a Hotlist in Opera.
and thus limits the "display space" of the adjacent table to a
certain width.
That depends more on the size of the browser than on whether a sidebar
is open or not.
Is there any way to detect whether the favourites sidebar is open, and
of which width it is?


Not that I know of. But as I said, it doesn't really matter. What you
can look at is the size of the browser viewport itself:
<URL:http://jibbering.com/faq/#FAQ4_9>
(short summary:
var width = (typeof window.innerWid th == "number")?windo w.innerWidth:
(document.docum entElement||doc ument.body).cli entWidth;
)
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
Markus Mohr wrote:
tonight I'm looking for a javascript piece of code which enables me to
detect whether the user's internet browser has a favourites sidebar
open and thus limits the "display space" of the adjacent table to a
certain width.


Don't ever restrict the display of a table to a specific width
which also means: Don't ever use tables for layout purposes.

People are different, systems are different, user agents are
different, display is different. The major advantage of HTML
is it to adjust the flow of content to the display area
automagically. So do not try to impose the opposite.
PointedEars
Jul 20 '05 #3
On Tue, 25 Nov 2003 13:15:42 +0100, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:
Markus Mohr wrote:
[....]


People are different, systems are different, user agents are
different, display is different. The major advantage of HTML
is it to adjust the flow of content to the display area
automagicall y. So do not try to impose the opposite.


Fully agree, but the people had such a website based on tables, and
now I have to cope with the same layout and display due to CI reasons.

Furthermore, within the display per se (i. e. to table with the
information to be shown), it is demanded to adjust the text relative
to a background image wich must not interfere with the text (text on
the left and image on the right) because it is too rich of contrast,
thus the superimposed text would become illegible.

I'm sorry, but these are not the conditions I have chosen.

Sincerely
Markus Mohr
Jul 20 '05 #4
Markus Mohr wrote:
On Tue, 25 Nov 2003 13:15:42 +0100, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:
Please shorten the attribution to one line, thanks.
Markus Mohr wrote:
[....]


People are different, systems are different, user agents are
different, display is different. The major advantage of HTML
is it to adjust the flow of content to the display area
automagically. So do not try to impose the opposite.


Fully agree, but the people had such a website based on tables, and
now I have to cope with the same layout and display due to CI reasons.


Your main problem is *not* the Favorites sidebar but anything that
forces the display area of the user to differ from that of the author.
So the only thing you have to make sure is that the table does not
extend the display width. Fortunately, CSS provides means for this
which are also both more reliable and more efficient than JavaScript
here (because the latter can be disabled in more UAs or not even being
supported and, as I understand it, it requires more computing time):

<table ... style="width:99 %; max-width:99%">
...
</table>

YMMV.
Furthermore, within the display per se (i. e. to table with the
information to be shown), it is demanded to adjust the text relative
to a background image wich must not interfere with the text (text on
the left and image on the right) because it is too rich of contrast,
thus the superimposed text would become illegible.
You cannot fix borken design neither with CSS nor with JavaScript. So if
you want a design that results in adequate display for resizable display
areas (which includes those restricted by sidebars) and/or different
display resolutions, the design needs to be changed.
I'm sorry, but these are not the conditions I have chosen.


Tough luck. Maybe you should venture to show your expert knowledge:
Tell them that what they have done ignores the reality of the used
medium (using other words, of course ;-)) and provide alternatives.
Or, OTOH, you should drop the assignment. Anything else only gets
you more in trouble.
HTH

PointedEars
Jul 20 '05 #5
On Wed, 26 Nov 2003 17:46:10 +0100, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:
Markus Mohr wrote:
On Tue, 25 Nov 2003 13:15:42 +0100, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:


Please shorten the attribution to one line, thanks.
Markus Mohr wrote:

[....]

I'm sorry, but these are not the conditions I have chosen.


Tough luck. Maybe you should venture to show your expert knowledge:
Tell them that what they have done ignores the reality of the used
medium (using other words, of course ;-)) and provide alternatives.
Or, OTOH, you should drop the assignment. Anything else only gets
you more in trouble.


True, but they stick to the CI conform design, and I have no other
choice than to handle it this way. Unfortunetaly, the understanding of
both design and coding functionality is not widespread in this
company, so that I haven't got anyone to share my point of view.

But I have solved the problem in another way: letting the text flow
around the right-aligned image as simple HTML statement, and
apparently everybody seems to be happy with it (apart from myself).

Sincerely and thank you
Markus
Jul 20 '05 #6
On Tue, 25 Nov 2003 00:02:57 +0100, Lasse Reichstein Nielsen
<lr*@hotpop.com > wrote:
Markus Mohr <ma*********@ma zimoi.de> writes:
tonight I'm looking for a javascript piece of code which enables me to
detect whether the user's internet browser has a favourites sidebar
open


Mine doesn't. Mostly because it has no favorites sidebar, it's called
a Hotlist in Opera.


Yes, you're right, mine as well, but the people who were disturbed by
what they saw, of course and obviously, only had the IE at hand ....
Is there any way to detect whether the favourites sidebar is open, and
of which width it is?


Not that I know of. But as I said, it doesn't really matter. What you
can look at is the size of the browser viewport itself:
<URL:http://jibbering.com/faq/#FAQ4_9>
(short summary:
var width = (typeof window.innerWid th == "number")?windo w.innerWidth:
(document.docum entElement||doc ument.body).cli entWidth;


Very good hint, thank you. But meanwhile I had to solve the problem in
a different way (simply letting the text flow around the image in a
HTML way), and all of a sudden even the most sceptical minds seem to
be satisfied.

Thank you very much for your help,
Markus Mohr
Jul 20 '05 #7
Markus Mohr wrote:
But I have solved the problem in another way: letting the text flow
around the right-aligned image as simple HTML statement, and
apparently everybody seems to be happy with it (apart from myself).
Fine. One more thing: HTML is a markup language, not a programming
language. HTML has elements, composed of tags, having attributes
having values. It has no statements.
Sincerely and thank you


You are welcome.
PointedEars
Jul 20 '05 #8

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

Similar topics

10
3579
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script language="JavaScript" type="text/javascript"> function show(that) { if (box.style.visibility=='hidden') { that.style.visibility = 'visible'}; }
24
5821
by: Mohammd M. Hussain | last post by:
Hi, I am writing an XHTML 1.0 Strict Compatible web page. However, the validator complained about the <br> tag. I wonder whether there is another alternative for this. Thanks,
16
1944
by: MasonC | last post by:
In Opera 7.23 I am unable to control the font sizes in sideBar and topBar divs. No problem in MSIE 6 or Mozilla The pertinent css is: (I've tried many variations) A { FONT: 90% Arial, helvetica, sans-serif; } A:LINK { BACKGROUND: #ffffff; COLOR: #0000cc; FONT: 80% Arial,helvetica,sans-serif;} A:VISITED { BACKGROUND: #fcfcf0; COLOR: #6666cc; FONT: 80% Arial,helvetica,sans-serif;} A:HOVER { BACKGROUND: #666633; COLOR: #ffffff; FONT: 80%...
28
3411
by: Lachlan Hunt | last post by:
Hi, I've been trying, but failing to work out what is causing Opera to render my drop down menu incorrectly on my site. http://www.lachy.id.au/ For some reason, there seems to be extra margin added below each list item, that gets bigger for each subsequent item. Can someone please take a look and see if they can find my problem? It works almost perfectly in Firefox so you can see how it should look. It degrades
1
2018
by: fuzzyman | last post by:
I have a very odd problem that has boggled my head. I've been trying to get a 2 column layout working with CSS. The problem seems to occur with the use of the <script> tag in the document. I've been reworking the CSS to use percentages rather than fixed widths. I'd like a two column page with header, footer, main body -with sidebar. I'd like the sidebar to have a fixed size and the mainbody to follow the browser window size *preferably*...
10
5425
by: Andrew | last post by:
I'm developing a site using CSS layout. One of the main divs contains the content, another contains the side bar. I want the content next to the sidebar so the content is floated left and the sidebar is floated right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6 screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ). I can't find any reference to any bugs in Opera that would cause it to behave like this,...
1
1173
by: zoneal | last post by:
I'm making a "favourites" for a browser, as i may have said in previous post. So I want to be able to read a simple xml's <Url> <Favourites> <url>http://www.google.ca</url> </Favourites> Any Idea's? I've looked around on code sites, but they only let me display Favourites and URL...
14
4974
by: Mark | last post by:
please view http://mnbayazit.com/misc/sample.gif i'm wondering how i can make the sidebar (green) float to the right of the main text, without specifying the width of the main content (because the sidebar is optional, i need the main content to fill the space available). ie, the green sidebar should be right up against the red header. code below
8
376
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The « navigator » object contains strings which specify the browser and version; however, this is in general not very genuine. Mozilla (and therefore Netscape 6+) allows this to be freely set, and Opera and IE allow it to be modified. There are...
0
8376
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
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
8815
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...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7307
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
6161
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
4149
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...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
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

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.