Acquiring user's screen dimensions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed

    Acquiring user's screen dimensions

    Using JavaScript, I'm able to get the user's screen dimensions with
    screen.availWid th and screen.availHei ght. But if I want to store this info
    in the database using ASP code, how do I go about doing it?


  • Ray at

    #2
    Re: Acquiring user's screen dimensions

    Send the results back to the server in some way, such as in the querystring.



    Ray at work

    "Ed" <eddiemarino@ho tmail.com> wrote in message
    news:eI3qtsuAEH A.356@TK2MSFTNG P10.phx.gbl...[color=blue]
    > Using JavaScript, I'm able to get the user's screen dimensions with
    > screen.availWid th and screen.availHei ght. But if I want to store this[/color]
    info[color=blue]
    > in the database using ASP code, how do I go about doing it?
    >
    >[/color]


    Comment

    • Aaron Bertrand [MVP]

      #3
      Re: Acquiring user's screen dimensions

      Take it from JavaScript and send it to ASP. ASP can't access client-side
      information...

      --
      Aaron Bertrand
      SQL Server MVP
      Please contact this domain's administrator as their DNS Made Easy services have expired.



      "Ed" <eddiemarino@ho tmail.com> wrote in message
      news:eI3qtsuAEH A.356@TK2MSFTNG P10.phx.gbl...[color=blue]
      > Using JavaScript, I'm able to get the user's screen dimensions with
      > screen.availWid th and screen.availHei ght. But if I want to store this[/color]
      info[color=blue]
      > in the database using ASP code, how do I go about doing it?
      >
      >[/color]


      Comment

      • Tim Slattery

        #4
        Re: Acquiring user's screen dimensions

        "Ed" <eddiemarino@ho tmail.com> wrote:
        [color=blue]
        >Using JavaScript, I'm able to get the user's screen dimensions with
        >screen.availWi dth and screen.availHei ght. But if I want to store this info
        >in the database using ASP code, how do I go about doing it?[/color]

        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)
        Slattery_T@bls. gov

        Comment

        Working...