Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Client Screen Propertiess.

    Is there a way to detect the Client Screen Size and Color Depth With ASP/VBScript without useing JS?

    I went to w3schools and looked for it but I couldn't find anything on that.

    Thanks,
    Larry
    Last edited by ldiuf; 06-27-2002 at 10:02 PM.

  • #2
    New Coder
    Join Date
    Jun 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is not possible

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Try using a tracking tool such as, Webtrends Live! They track browsers, screen res, color depth, and tons others.

    There is a free edition but it only has HTML based tracking and you gotta put a little 'Tracked by Webtrends Live' button on your site.

    If you want to read tracking data from your PDA or off a SQL server you gotta pay for it.
    OracleGuy

  • #4
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Monterrey Mexico
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have the same problem, I get information about client using JavaScript, such as screen resolution, OS, etc, but i want to put this info in an Access database, how can I pass this values to my ASP Application?, please help!

    Roberto Ayala.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    One way would be to use a hidden frame or iframe, get this information using javascript, and send this information to an asp page that then processes this that resides in your hidden frame.

    Code:
    <script language="javascript" type="text/javascript">
    <!--
    // get browser info here, etc.
    top.myhiddenframe.location = "browserinfo.asp?theinfo=" + escape(browserinfo);
    // -->
    </script>
    Then, on browserinfo.asp you could get whatever information you passed through the querystring...

    <%
    theinfo = Request.QueryString("theinfo")
    Response.Write(theinfo)
    %>
    Last edited by whammy; 07-14-2002 at 02:17 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #6
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Monterrey Mexico
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whammy...

    Yes, I can do that, but i want to do it in the same page, without submiting the actual asp page.

    I'm trying to create cookies with this info from javascript at the top of the page, then from "Request.Cookies" read them, but it doesn't work , the cookies are created, but when I try to read them from the same page, there is no values in the cookies, this values appear until I reload the page "Refresh Button" . here is the code...


    (here I create cookies)

    <SCRIPT LANGUAGE="JavaScript">
    document.cookie = "appName=" + navigator.appName;
    document.cookie = "plataforma=" + navigator.platform;
    document.cookie = "resolucion=" + screen.width + "x" + screen.height;
    document.cookie = "colorDepth=" + screen.colorDepth;
    document.cookie = "referrer=" + navigator.referrer;
    </SCRIPT>

    <HTML>
    <BODY>

    (to retrieve this values, only works when I refresh the browser, the first time, the values are empty)

    <%
    Response.Write("<BR>" & Request.Cookies("appName"))
    Response.Write("<BR>" & Request.Cookies("plataforma"))
    Response.Write("<BR>" & Request.Cookies("resolucion"))
    Response.Write("<BR>" & Request.Cookies("colorDepth"))
    Response.Write("<BR>" & Request.Cookies("referrer"))
    %>

    </BODY>
    </HTML>

    Is there some way I can do it, without submiting info to another page?

    Thanks in Advance!

    Roberto Ayala.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's why I suggested using a hidden frame or iframe. The information has to be sent to the server SOMEHOW, the only way to do this without submitting or refreshing THAT page is to send the info to another one. Get it?
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #8
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Monterrey Mexico
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whammy...

    OK, I understand now, that's right, Thanks for your help!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •