<div dir="ltr">Well, you could call another URL with the screen.width as part of the URL. Something like:<br><br><a href="http://server/screen.pl?screen=screen.width">http://server/screen.pl?screen=screen.width</a><br><br>
You&#39;d call this URL within javascript with document.location.href. Then you could use CGI.pm to take that screen value, and it&#39;ll all be within Perl.<br><br>Kind of a hack, I wouldn&#39;t want to do it for a bunch of javascript vars, that&#39;s for sure.<br clear="all">
 <br>Mark Schoonover<br><a href="http://www.linkedin.com/in/markschoonover">http://www.linkedin.com/in/markschoonover</a><br>Cell: 619-368-0099 :: Fax: 619-374-3130 :: AIM: mschoonov<br><br>
<br><br><div class="gmail_quote">On Mon, Oct 20, 2008 at 7:26 PM, Joel Fentin <span dir="ltr">&lt;<a href="mailto:joel@fentin.com">joel@fentin.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The following is within a perl program on the server. My goal is to know the width of the surfer&#39;s screen so that I can make adjustments.<br>
<br>
my ($SWW);<br>
print qq|<br>
&lt;script language=&quot;JavaScript&quot;&gt;<br>
 &nbsp;var SW = screen.width;<br>
alert(SW);<br>
&lt;/script&gt;|;<br>
<br>
# $SWW = SW;<br>
<br>
===========================<br>
<br>
How do you get the javascript value into a perl variable?<br>
<br>
If SW is equal to 1280, how do I get that 1280 into $SWW?<br>
<br>
-- <br><font color="#888888">
Joel Fentin &nbsp; &nbsp; &nbsp; tel: 760-749-8863<br>
Email: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://fentin.com/me/ContactMe.html" target="_blank">http://fentin.com/me/ContactMe.html</a><br>
Biz Website: &nbsp; &nbsp; &nbsp;<a href="http://fentin.com" target="_blank">http://fentin.com</a><br>
Personal Website: <a href="http://fentin.com/me" target="_blank">http://fentin.com/me</a><br>
_______________________________________________<br>
San-Diego-pm mailing list<br>
<a href="mailto:San-Diego-pm@pm.org" target="_blank">San-Diego-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/san-diego-pm" target="_blank">http://mail.pm.org/mailman/listinfo/san-diego-pm</a><br>
</font></blockquote></div><br></div>