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 4 of 4

Thread: New to JS

  1. #1
    New to the CF scene
    Join Date
    Jul 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New to JS

    Greetings
    I'm new to javascript, and after looking around quite a bit I'm stuck with two point.

    If I have a javascript, that reports the users browser type. How can I write this to a file, on the server. much like a log file, but with results from a form and other web page entries?

    Also I see that Navigator has PrivateRegistryAccess, they say so that you can access the client's registry and check to see they have the latest version of your software, this way you can add lines on your web page to notify them that they need to download the latest version.
    What is IE's equivalent? Or does Netscape (non-MS) only access the registry (MS item)?

    Thanks in advance, I'm looking forward to learn

    brif8

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you would need a server sided scripting language like asp or php.

  • #3
    New to the CF scene
    Join Date
    Jul 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JS more info.

    Thanks for your reply

    Could you possibly point in the right direction to a website that will help. I know nothing on ASP, and would need to link javascript with ASP, or can ASP access the same DOM objects that javascript does.

    Thanks for all you help

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If I have a javascript, that reports the users browser type. How can I write this to a file, on the server. much like a log file, but with results from a form and other web page entries?
    Simple, you can use JS to output anything it can tell about the user to a form field. That's one reason why JS isn't allowed to find out too much about users, it would be too easy for companies to learn a lot about you if JS allowed them to read anything they wanted.

    Code:
    <form name="myform">
    ...
    <input type="hidden" value="" name="browser" />
    <script>
    document.forms["myform"].browser=aVariableISetAlready;
    </script>
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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