in reply to Get visitor's screen size.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Get visitor's screen size.
by Seumas (Curate) on Jul 14, 2002 at 13:42 UTC | |
by Chady (Priest) on Jul 14, 2002 at 17:50 UTC | |
by merlyn (Sage) on Jan 15, 2003 at 00:26 UTC | |
by dug (Chaplain) on Jan 15, 2003 at 03:42 UTC |