screen resolution

R

Roedy Green

Is there an easy way for the server to get the screen resolution of a
browser window?

If you knew, you might do a number of things:

1. select an appropriate style sheet.

2. use narrower or wider layouts

3. use different sized icons and images.

4. smaller or larger pages.
--
Roedy Green Canadian Mind Products
http://mindprod.com

"People think of security as a noun, something you go buy. In reality, it’s an abstract concept like happiness. Openness is unbelievably helpful to security."
~ James Gosling (born: 1955-05-18 age: 54), inventor of Java.
 
A

Arne Vajhøj

Roedy said:
Is there an easy way for the server to get the screen resolution of a
browser window?

You will need to have som JavaScript send something to the
server with the size.

I am not convinced that it is a good idea.

Arne
 
R

Roedy Green

You can do funky things with max-width on images so they shrink in
smaller spaces, but never expand beyond their natural size. Suitability
of this technique depends on how important scaled-image quality is, and
on the range of widths you expect to cover.

I watched Charlie Rose interview Marc Andreessen (Mr. Netscape). He is
a great interview with a good head for the big picture.

He pointed out the technical reasons the iPhone made such a splash. He
felt a range of wireless devices are about to explode,
iPhone,
Kindle (now holds 1500 books with 2 week battery life).
Netbook.

As fibre was lulling us into forgetting about conserving bandwidth,
stupendous cell-phone access charges are making it important again.

Ever greater intelligence and storage at both ends should let us use
bandwidth more parsimoniously than ever before.

--
Roedy Green Canadian Mind Products
http://mindprod.com

"People think of security as a noun, something you go buy. In reality, it’s an abstract concept like happiness. Openness is unbelievably helpful to security."
~ James Gosling (born: 1955-05-18 age: 54), inventor of Java.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Java hom foer the Mac Snow Leopard? 7
Basic JSP question 17
JRE Corrupt? 6
reverse Dictionary 2
Pithy programming Quotations 23

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top