By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

window.screen.width on dual display systems

P: n/a

(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.width. I
wasn't aware of this behaviour of window.screen.width, 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.width 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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Oct 12 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.