473,787 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.screen.w idth on dual display systems


(Note: I'm not trying to do anything stupid based on the user's screen size
- I'm just curious.)
At work today I was looking at the visitor statistics for a client website,
and noticed that the recorded screen resolutions included results that
clearly referred to dual display systems - 2560 by 1024, for example. The
statistics package is obtaining this data from window.screen.w idth. I
wasn't aware of this behaviour of window.screen.w idth, so I tested it on my
dual display system in Internet Explorer 6 and 7 and the latest versions of
Firefox, Opera, and Safari. All returned 1680 by 1050, regardless of
whether the window was on one screen or stretched across two (a Google
search suggested stretching the window across two screens would lead to
window.screen.w idth reporting the combined width).
Does anyone know which browser-platform combinations report the total width
on dual display systems? I've temporarily set my own site to log screen
widths and heights and user-agent strings, but after several hours there
haven't been any double-width reports, so I though I'd ask here in case
anyone knew. Like I said, it's just for curiousity so you don't need to
worry about me doing anything stupid based on the user's screen size.
--
Safalra (Stephen Morley)

Sortable Tables In javascript:
http://www.safalra.com/web-design/ja...rtable-tables/
Oct 11 '07 #1
3 6798
Safalra (Stephen Morley) wrote:
At work today I was looking at the visitor statistics for a client website,
and noticed that the recorded screen resolutions included results that
clearly referred to dual display systems - 2560 by 1024, for example.
Not necessarily. Virtual desktops are not restricted to dual- or
multi-display use.
PointedEars
Oct 11 '07 #2
On Thu, 11 Oct 2007 22:58:57 +0200, Thomas 'PointedEars' Lahn wrote:
Safalra (Stephen Morley) wrote:
>At work today I was looking at the visitor statistics for a client website,
and noticed that the recorded screen resolutions included results that
clearly referred to dual display systems - 2560 by 1024, for example.

Not necessarily. Virtual desktops are not restricted to dual- or
multi-display use.

Ah Thomas, you always know what to say to make me feel stupid... :-) You're
right of course. It might probably also explain the screen resolutions with
crazy ratios - 640:427 and 126:95 for example.

--
Safalra (Stephen Morley)

Sortable Tables In javascript:
http://www.safalra.com/web-design/ja...rtable-tables/
Oct 12 '07 #3
Safalra (Stephen Morley) wrote:
On Thu, 11 Oct 2007 22:58:57 +0200, Thomas 'PointedEars' Lahn wrote:
>Safalra (Stephen Morley) wrote:
>>At work today I was looking at the visitor statistics for a client website,
and noticed that the recorded screen resolutions included results that
clearly referred to dual display systems - 2560 by 1024, for example.
Not necessarily. Virtual desktops are not restricted to dual- or
multi-display use.

Ah Thomas, you always know what to say to make me feel stupid... :-)
Sorry :)
You're right of course. It might probably also explain the screen
resolutions with crazy ratios - 640:427 and 126:95 for example.
There is also the possibility that, whenever the window size or viewport
size was greater than the *assumed* display resolution, the window size or
viewport size was logged instead. A height of 427 would fit for the latter,
as that is about the height of my viewport in Firefox with a window size of
800x600 pixels.
Regards,

PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Oct 12 '07 #4

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

Similar topics

2
5368
by: Randell D. | last post by:
HELP! Its taken me ages - I'm a newbie and I've compiled bits of code that I've read in this newsgroup over time to create one of my most intricate functions to date... Basically, the script gets called with a single arguement (full path to an image). The image is supposed to be downloaded to the cache, and when complete, a new window opened that is slightly larger insize then the images dimensions... The new window will contain the...
5
1571
by: Brandon Potter | last post by:
Forgive me if this has already been covered... I use dual displays and have 2 - 3 Visual Studio .NET 2003's open at the same time, however, without fail, at some point during my session, the title bar and border of one of the VS.NET's copies 1/2 of its height and 1/2 of its width, so I end up with this floating titlebar and border taking up the lower left corner of my 2nd monitor with an invalidated paint area. Is there a fix?
6
5645
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser window when I open a new window. > > function expand() { > window.moveTo(0,0); > window.resizeTo(screen.availWidth, screen.availHeight); > }
14
11098
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
10
11621
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not IE. Thanks!
1
7814
by: Patrick | last post by:
need some code for getting screenshots from the secondary monitor on dual monitor display. Here's a bit of the code for a screen from the primary monitor. Bitmap MyImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, g1); For the second monitor I can use the Screen.Allscreens method to get and array of the screens. So far that is looking like this...
4
6409
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database to look a and I am loosing tremendious amounts of time trying to organize it so that I could view it. Regards, Alexandre Brisebois
7
4521
by: Bill Nguyen | last post by:
This has been posted before but received no response: I need to arrange window screens on the total area of a mulitple-mopnitor desktop. As an example, below is the bound info for my 2-monitor PC: Device Name: \\.\DISPLAY1 Bounds: {X=1152,Y=0,Width=1152,Height=864} Primary Screen: False
9
2599
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo" runat="server"/> <asp:Label ID="CompanyPicture" runat="server"/> I have 2 links that open the windows to preview these images. The previewed images are done on separate html pages that do nothing but display the
0
9655
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
10363
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
10172
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
9964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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
7517
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
6749
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
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...
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.