Results 1 to 3 of 3

Thread: request.ServerVariables("Server_Name") issued on client

  1. #1
    Join Date
    Dec 2005
    Location
    Provence, France
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default request.ServerVariables("Server_Name") issued on client

    Hi, ... I have a little blackout. From the client side I like to retrieve the "Server_Name" ?

    I always get error msg: Objekt required: 'Request'

    ? how do I define the object 'request' ? As said I have a blackout ...
    of course a JavaScript sample is ok too!

    ? are there other/easier means to get the "Server_Name"?

    Thanks for your help
    ed k

    <script language="VBscript">
    dim ServerName
    ServerName = Request.ServerVariables("Server_Name")
    alert ([ServerName])
    </script>

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Using VBScript is never a good idea. You will get that error message because you are using actual VBScript, rather than the VBScript ASP syntax.
    Code:
    <script type="text/javascript">
    window.alert(window.location.host);
    </script>
    As said I have a blackout ...
    Je pense que le mot que vous voulez est "problem"
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2005
    Location
    Provence, France
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Tway,

    .. je vous remercie pour votre aide!
    A little hint always helps
    Thanks ed

Bookmarks

Posting Permissions

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