473,406 Members | 2,467 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,406 software developers and data experts.

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 1616
Markus Mohr <ma*********@mazimoi.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.innerWidth == "number")?window.innerWidth:
(document.documentElement||document.body).clientWi dth;
)
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.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*********@web.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
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.

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*********@web.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*********@web.de> wrote:
Markus Mohr wrote:
On Tue, 25 Nov 2003 13:15:42 +0100, Thomas 'PointedEars' Lahn
<Po*********@web.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*********@mazimoi.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.innerWidth == "number")?window.innerWidth:
(document.documentElement||document.body).clientWi dth;


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
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...
24
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
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,...
28
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...
1
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...
10
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...
1
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...
14
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...
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.