Connecting Tech Pros Worldwide Help | Site Map

get screen resolution

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 10th, 2006, 09:45 PM
tim
Guest
 
Posts: n/a
Default get screen resolution

can someone tell me which function returns the screen resolution in
java script?


  #2  
Old February 10th, 2006, 10:25 PM
evanburen@gmail.com
Guest
 
Posts: n/a
Default Re: get screen resolution

http://javascript.internet.com/user-...n-details.html

  #3  
Old February 10th, 2006, 10:35 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: get screen resolution

tim wrote:
[color=blue]
> can someone tell me which function returns the screen resolution in
> java script?[/color]

No.

1. This is a FAQ. Search before you post.

2. There is no "java script".

3. You will need an acid for the resolution of your screen, a
JavaScript function does not provide such a feature (yet).
Try some diluted HCl for a start.

4. It is not possible to obtain the display resolution reliably.

5. The property some would suggest would not help you anyway,
because:

Display resolution != desktop size != browser window size
!= viewport size. [psf 3.7]

<URL:http://jibbering.com/faq/>


HTH & HAND

PointedEars
  #4  
Old February 10th, 2006, 10:47 PM
Ivo
Guest
 
Posts: n/a
Default Re: get screen resolution

<evanburen@gmail.com> schreef[color=blue]
> http://javascript.internet.com/user-...n-details.html[/color]

That script relies on Java! Not necessary at all. Javascript can do it all
by itslef:

var sw = window.screen.width;
var sh = window.screen.height;
var aw = window.screen.availWidth;
var ah = window.screen.availHeight;

The "available" space is less than the total space when the OS features a
taskbar, as in Windows for example, which is not set to 'auto-hide'. The
height of the taskbar can then be determined by noting the difference:

var taskbarheight = window.screen.height - window.screen.availHeight

When auto-hide is turned on, the reported available space will be the same
as the total, even when the bar is not actually hidden.
--
Ivo
http://www.yorick.onlyfools.com/


  #5  
Old February 12th, 2006, 07:35 PM
Dr John Stockton
Guest
 
Posts: n/a
Default Re: get screen resolution

JRS: In article <2803274.hIXOPXQNv1@PointedEars.de>, dated Sat, 11 Feb
2006 00:19:06 remote, seen in news:comp.lang.javascript, Thomas
'PointedEars' Lahn <PointedEars@web.de> posted :[color=blue]
>tim wrote:
>[color=green]
>> can someone tell me which function returns the screen resolution in
>> java script?[/color][/color]
[color=blue]
>3. You will need an acid for the resolution of your screen, a
> JavaScript function does not provide such a feature (yet).
> Try some diluted HCl for a start.[/color]

Don't try to make plays on words in a language which you do not know
well enough; it merely exposes the inadequacies of your "education".

--
© John Stockton, Surrey, UK. ???@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
  #6  
Old February 12th, 2006, 07:55 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: get screen resolution

Dr John Stockton wrote:
[color=blue]
> [...] Thomas 'PointedEars' Lahn [...] posted :[color=green]
>> tim wrote:[color=darkred]
>>> can someone tell me which function returns the screen resolution in
>>> java script?[/color]
>> 3. You will need an acid for the resolution of your screen, a
>> JavaScript function does not provide such a feature (yet).
>> Try some diluted HCl for a start.[/color]
>
> Don't try to make plays on words in a language which you do not know
> well enough; it merely exposes the inadequacies of your "education".[/color]

Somehow I expected this. And somehow I knew it would be you.

,-[Cambridge Advanced Learner's Dictionary,
| <URL:http://dictionary.cambridge.org/define.asp?key=67252&dict=CALD>]
|
| *resolution* [...]
| noun [u] SPECIALIZED
| 1 when something separates or is separated into clearly different parts:
| the resolution of oil into bitumen and tar
| 2 the ability of a microscope, or a television or computer screen, to show
| things clearly and with a lot of detail:
| a high/low resolution image


PointedEars
  #7  
Old February 13th, 2006, 05:55 PM
Dr John Stockton
Guest
 
Posts: n/a
Default Re: get screen resolution

JRS: In article <19003585.jg79j17y2A@PointedEars.de>, dated Sun, 12 Feb
2006 21:40:26 remote, seen in news:comp.lang.javascript, Thomas
'PointedEars' Lahn <PointedEars@web.de> posted :[color=blue]
>Dr John Stockton wrote:
>[color=green]
>> [...] Thomas 'PointedEars' Lahn [...] posted :[color=darkred]
>>> tim wrote:
>>>> can someone tell me which function returns the screen resolution in
>>>> java script?
>>> 3. You will need an acid for the resolution of your screen, a
>>> JavaScript function does not provide such a feature (yet).
>>> Try some diluted HCl for a start.[/color]
>>
>> Don't try to make plays on words in a language which you do not know
>> well enough; it merely exposes the inadequacies of your "education".[/color]
>
>Somehow I expected this. And somehow I knew it would be you.
>
>,-[Cambridge Advanced Learner's Dictionary,
>| <URL:http://dictionary.cambridge.org/define.asp?key=67252&dict=CALD>]
>|
>| *resolution* [...]
>| noun [u] SPECIALIZED
>| 1 when something separates or is separated into clearly different parts:
>| the resolution of oil into bitumen and tar
>| 2 the ability of a microscope, or a television or computer screen, to show
>| things clearly and with a lot of detail:
>| a high/low resolution image[/color]

Dictionaries are the one thing for which one should go not to Cambridge
but to Oxford.

But in this case Cambridge suffices. The normal meanings of
"resolution" do not include "solution" as used in chemistry.

Resolution is, in essence, a separation; solution is in essence an
incorporation.

Rather than using a dictionary written only in what is to you a foreign
language, you should use a suitable English-German dictionary; then you
should be able to understand the explanations. Not a large one; such
also give esoteric meanings unsuitable for ordinary use.

Resolution : Entschlossenheit, Beschluss, Entschluss
Solution : Losung, Auflosung; Erklarhullen

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
  #8  
Old February 14th, 2006, 05:45 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: get screen resolution

Dr John Stockton wrote:
[color=blue]
> [...] Thomas 'PointedEars' Lahn [...] posted :[color=green]
>> Dr John Stockton wrote:[color=darkred]
>>> [...] Thomas 'PointedEars' Lahn [...] posted :
>>>> tim wrote:
>>>>> can someone tell me which function returns the screen resolution in
>>>>> java script?
>>>> 3. You will need an acid for the resolution of your screen, a
>>>> JavaScript function does not provide such a feature (yet).
>>>> Try some diluted HCl for a start.
>>>
>>> Don't try to make plays on words in a language which you do not know
>>> well enough; it merely exposes the inadequacies of your "education".[/color]
>>
>> Somehow I expected this. And somehow I knew it would be you.
>>
>>,-[Cambridge Advanced Learner's Dictionary,
>>| <URL:http://dictionary.cambridge.org/define.asp?key=67252&dict=CALD>]
>>|
>>| *resolution* [...]
>>| noun [u] SPECIALIZED
>>| 1 when something separates or is separated into clearly different parts:
>>| the resolution of oil into bitumen and tar
>>| 2 the ability of a microscope, or a television or computer screen, to
>>| show
>>| things clearly and with a lot of detail:
>>| a high/low resolution image[/color]
>
> Dictionaries are the one thing for which one should go not to Cambridge
> but to Oxford.[/color]

,-[Compact Oxford English Dictionary
| <URL:http://www.askoxford.com/concise_oed/resolution?view=uk>]
|
| resolution
|
| • noun 1 a firm decision. 2 an expression of opinion or intention agreed
| on by a legislative body. 3 the quality of being resolute. 4 the |
| resolving of a problem or dispute. 5 the process of reducing or
| separating something into components. 6 the smallest interval measurable
| by a telescope or other scientific instrument. 7 the degree of detail
| visible in a photographic or television image.
[color=blue]
> But in this case Cambridge suffices. The normal meanings of
> "resolution" do not include "solution" as used in chemistry.[/color]

That it was meant so is merely your unfounded assumption that allows you to
start a flamewar once more.
[color=blue]
> Resolution is, in essence, a separation;[/color]

Exactly.
[color=blue]
> solution is in essence an incorporation.
>
> Rather than using a dictionary written only in what is to you a foreign
> language, you should use a suitable English-German dictionary; then you
> should be able to understand the explanations.[/color]

Rather than depending what you call a suitable English-German dictionary for
what is or is not the correct translation for a word to what is to you a
foreign language, you should ask someone who speaks German as native
language. JFYI: The translations your dictionary provided are _not_
sufficient.


PointedEars
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.