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 reply to Re: Re: Get visitor's screen size. by Seumas
in thread Get visitor's screen size. by Seumas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.