[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Screen Size
Terry Bailey wrote:
> Hi,
>
> Thanks for the tips.
>
> In JavaScript,
>
> screen.availWidth
>
> will find the width of the screen.
>
> Is there a way to do this in Perl?
>
> I could use a JavaScript function, say findit, to do this but then I
> don't know how to return the calculated value back to Perl.
>
> Thanks,
>
> Terry Bailey
Because the Perl would be running on the server, it has no way of
finding the client's screen width natively. Only by using JS to pass it
to the perl script (as a GET variable, most likely) would the perl
script be aware of this.