Get user name?

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

    Get user name?

    Hello,

    I'm trying to get the current system logged in user name.

    When I use the follwing code, I receive a "'system' is undefined"
    error.

    <script language="javas cript">
    document.write (system.propert ies("user.name" ));
    </script>

    As far as I am aware this is the proper code to use top do what I
    want, however the error keeps popping up.

    Can anyone please point me in a clear direction?

    Thank you in advance,
    --FB
  • Michael Winter

    #2
    Re: Get user name?

    FrankBooth wrote on 21 Dec 2003 at Sun, 21 Dec 2003 05:17:04 GMT:
    [color=blue]
    > Hello,
    >
    > I'm trying to get the current system logged in user name.
    >
    > When I use the follwing code, I receive a "'system' is undefined"
    > error.
    >
    > <script language="javas cript">
    > document.write (system.propert ies("user.name" ));
    > </script>
    >
    > As far as I am aware this is the proper code to use top do what I
    > want, however the error keeps popping up.
    >
    > Can anyone please point me in a clear direction?[/color]

    That looks correct for Java, but Java and JavaScript are not the same
    language. I don't think that there is any way of doing this without
    using proprietary browser extensions.

    Mike

    --
    Michael Winter
    M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk")

    Comment

    • Brett Wilkes

      #3
      Re: Get user name?

      What web server software are you using--IIS, Apache...?
      Is this an intra- or inter- net application?

      "FrankBooth " <agomez@epnet.c om> wrote in message
      news:8c34235e.0 312202117.70857 c49@posting.goo gle.com...[color=blue]
      > Hello,
      >
      > I'm trying to get the current system logged in user name.
      >
      > When I use the follwing code, I receive a "'system' is undefined"
      > error.
      >
      > <script language="javas cript">
      > document.write (system.propert ies("user.name" ));
      > </script>
      >
      > As far as I am aware this is the proper code to use top do what I
      > want, however the error keeps popping up.
      >
      > Can anyone please point me in a clear direction?
      >
      > Thank you in advance,
      > --FB[/color]


      Comment

      Working...