CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Screen Resolution

 



crashinto
Novice

Aug 31, 2001, 5:53 AM

Post #1 of 6 (1325 views)
Screen Resolution Can't Post

How can you display the Screen resolution of the computer that access the cgi script? Does it have anything with $env?



mhx
Enthusiast / Moderator

Aug 31, 2001, 6:23 AM

Post #2 of 6 (1322 views)
Re: Screen Resolution [In reply to] Can't Post

No. I think there's a way to determine the screen resolution with JavaScript, but I don't know much about JavaScript programming. Perhaps you try reposting this in the JavaScript forum?

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



crashinto
Novice

Aug 31, 2001, 6:41 AM

Post #3 of 6 (1321 views)
Re: Screen Resolution [In reply to] Can't Post

But I need perl, I wanted to do something like:

if ($screen > /1024*768/) { Stuff.... }
else { Stuff... }



crashinto
Novice

Aug 31, 2001, 3:54 PM

Post #4 of 6 (1317 views)
Re: Screen Resolution [In reply to] Can't Post

Anyone know?



wickedxter
User

Aug 31, 2001, 4:47 PM

Post #5 of 6 (1316 views)
Re: Screen Resolution [In reply to] Can't Post

as mhx posted there is not possible way with perl, you might be able to make perl work with java script and then test it that way, but with just perl its self, nope.



crashinto
Novice

Aug 31, 2001, 5:09 PM

Post #6 of 6 (1314 views)
Re: Screen Resolution [In reply to] Can't Post

How do the counter stat scripts do it? They comine Javascript and Perl?


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives