Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Get visitor's screen size.by Seumas (Curate) |
on Jul 14, 2002 at 13:42 UTC ( [id://181575]=note: 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 Yeah, I didn't expect there would be. I thought perhaps there may be some undocumented ENV variable that I might not be aware of that CGI could grab -- but I doubted it. I'm not looking to redirect users (at this point at least) so I'm not concerned beyond gathering this data. The site is designed to be fully functional from Netscape/Opera/MSIE 3x and greater, Mozilla and WebTV. I'm planning to enhance the "higher-end" functionality and display of the site however and rather than alienate lower-end visitors by introducing code that destroys their ability to use the site or limiting higher-end visitors from a full experience by catering to the lowest common denomenator, I am going to create a version geared at 800x600 or 1024x768 and higher and another for 800x600 or 640x480 and lower (largely plain text, tables and some images). As far as asking visitors... I deal with thousands of visitors a week who often have a difficult time entering the correct email address and wonder where their registration confirmation went -- or worse -- think they always have to prepend their email addresses with 'www.'. Getting a screenre solution from some of them would be like trying to get a definition of quantum theory from Ted Nugent. :) I didn't know thta I could simply refer to the Javascript vars outside of the SCRIPT tags without problems. That makes it much simpler!
In Section
Seekers of Perl Wisdom
|
|