No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You have to know that unless the browser sends you this information somehow in the header, you can't directly retrieve it from your perl script that is ran Server-Side so I think your only bet is, besides asking the visitor for his screen resolution, to try and read it from JavaScript and do a window.location.href="http://someserver/perlscript.pl?width=" + screen.width + "&height=" + screen.height; in your JavaScript or something like that. Just be sure that you have a default for people who do not have JavaScript turned on, so you do not alienate them from the site. I hope this helps. He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life. Chady | http://chady.net/ In reply to Re: Get visitor's screen size.
by Chady
|
|