Gossamer Forum
Home : General : Perl Programming :

Screen Resolution

Quote Reply
Screen Resolution
Is there a way to find out what screen settings do site visitors have?
I'd like to have different site settings for different visitors with different screen settings.
May be Java could help, if there's no way of doing this in Perl?

Thank you.

Pasha

------------------
The Flying Cranes, Inc:
http://www.theflyingcranes.com
Perl scripts & Web promotion:
http://find.virtualave.net
Quote Reply
Re: Screen Resolution In reply to
Ermm, I am not sure about Perl, but JS sure can do the job, take a look at http://javascript.internet.com/...ls/browser-info.html .
Quote Reply
Re: Screen Resolution In reply to
Yeah, but if the user's web browser doesn't support Java, then I screw up! I'll try to find other way of doing this.

Pasha

------------------
The Flying Cranes, Inc:
http://www.theflyingcranes.com
Perl scripts & Web promotion:
http://find.virtualave.net
Quote Reply
Re: Screen Resolution In reply to
Hiya Pasha,

You can't access screen resolution details using Perl, because it operates on the server side, whereas Java and JavaScript (two *very* different things) both work on the client side.

I would suggest using JavaScript, because using Java to do it would be cumbersome, a waste of time and resources. And whatever people say about it, Java is still unstable and still crashes computers. If users have JavaScript turned off though, there's nothing you can do about it, other than having a defualt setting for 640x480.

Cheers,
adam