473,578 Members | 2,856 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 1622
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
3573
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
5813
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
1943
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:...
28
3404
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...
1
2016
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...
10
5423
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 -...
1
1172
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
4969
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. ...
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...
0
7779
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
8126
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
8291
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...
0
5343
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
3786
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
3801
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2293
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
1
1391
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1114
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.