chris at chrisgrau.com
Mon Oct 20 19:34:45 PDT 2008
On Mon, Oct 20, 2008 at 07:26:51PM -0700, Joel Fentin wrote:
> The following is within a perl program on the server. My goal is to
> know the width of the surfer's screen so that I can make adjustments.
> my ($SWW);
> print qq|
> var SW = screen.width;
> # $SWW = SW;
> If SW is equal to 1280, how do I get that 1280 into $SWW?
Disclaimer #1: I haven't been a web developer for a few years.
When do you want this into a Perl variable? On form submission? That
If you want it at an arbitrary time, people use Ajax for that.
Disclaimer #2: I've never developed anything with Ajax.
There are probably a number of other modules that will do the job, but
that one looks like the simplest for a small script (like
CGI::Application versus Catalyst).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the San-Diego-pm