By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,704 Members | 1,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,704 IT Pros & Developers. It's quick & easy.

Acquiring user's screen dimensions

P: n/a
Ed
Using JavaScript, I'm able to get the user's screen dimensions with
screen.availWidth and screen.availHeight. But if I want to store this info
in the database using ASP code, how do I go about doing it?
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Send the results back to the server in some way, such as in the querystring.

http://www.aspfaq.com/show.asp?id=2043

Ray at work

"Ed" <ed*********@hotmail.com> wrote in message
news:eI*************@TK2MSFTNGP10.phx.gbl...
Using JavaScript, I'm able to get the user's screen dimensions with
screen.availWidth and screen.availHeight. But if I want to store this info in the database using ASP code, how do I go about doing it?

Jul 19 '05 #2

P: n/a
Take it from JavaScript and send it to ASP. ASP can't access client-side
information...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Ed" <ed*********@hotmail.com> wrote in message
news:eI*************@TK2MSFTNGP10.phx.gbl...
Using JavaScript, I'm able to get the user's screen dimensions with
screen.availWidth and screen.availHeight. But if I want to store this info in the database using ASP code, how do I go about doing it?

Jul 19 '05 #3

P: n/a
"Ed" <ed*********@hotmail.com> wrote:
Using JavaScript, I'm able to get the user's screen dimensions with
screen.availWidth and screen.availHeight. But if I want to store this info
in the database using ASP code, how do I go about doing it?


You have to send it back to the server. You can use a cookie, or a
hidden element in a form.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.