Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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

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!

Replies are listed 'Best First'.
Re: Re: Re: Get visitor's screen size.
by Chady (Priest) on Jul 14, 2002 at 17:50 UTC

    I didn't know thta I could simply refer to the Javascript vars outside of the SCRIPT tags without problems

    hold on a minute.. that line of code in my reply is a javascript code... you cannot use it outside script tags.. it just tells your browser to redirect to a specific address, which you construct based on the screen resolution you get..


    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/
•Re: Re: Re: Get visitor's screen size.
by merlyn (Sage) on Jan 15, 2003 at 00:26 UTC
    would be like trying to get a definition of quantum theory from Ted Nugent.
    Actually, from what I understand, the ol' WangoTango guy is pretty smart. Now, getting quantum theory from Britney Spears, on the other hand...

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      And he cooks! Read a review of this in the New Yorker a coupla months back that made me grin. It was quite glowing.

      -- dug

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://181575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found