I need help in javascript

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

    I need help in javascript

    Hello all
    How i can get current username from win2000/xp
    in javascript
    best regards


    --
    Jacob-R



  • Randy Webb

    #2
    Re: I need help in javascript

    jacob wrote:[color=blue]
    > Hello all
    > How i can get current username from win2000/xp
    > in javascript[/color]

    The same way you get it in the other post you made asking this same
    question.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq
    Answer:It destroys the order of the conversation
    Question: Why?
    Answer: Top-Posting.
    Question: Whats the most annoying thing on Usenet?

    Comment

    • Hywel Jenkins

      #3
      Re: I need help in javascript

      In article <41e068e9$1@new s.bezeqint.net> , yacovr@c.v says...[color=blue]
      > Hello all
      > How i can get current username from win2000/xp
      > in javascript
      > best regards[/color]

      var username = prompt('What is your username?');

      --
      Hywel http://kibo.org.uk/
      I do not eat quiche.

      Comment

      • Jacob

        #4
        Re: I need help in javascript

        from the system not from the user
        "Hywel Jenkins" <hyweljenkins@h otmail.com> wrote in message
        news:MPG.1c4afa a168cef39c98975 c@news.individu al.net...[color=blue]
        > In article <41e068e9$1@new s.bezeqint.net> , yacovr@c.v says...[color=green]
        >> Hello all
        >> How i can get current username from win2000/xp
        >> in javascript
        >> best regards[/color]
        >
        > var username = prompt('What is your username?');
        >
        > --
        > Hywel http://kibo.org.uk/
        > I do not eat quiche.[/color]


        Comment

        • Grant Wagner

          #5
          Re: I need help in javascript

          "Jacob" <yacov@1.1> wrote in message
          news:41e2abb6$1 @news.bezeqint. net...
          [color=blue]
          > "Hywel Jenkins" <hyweljenkins@h otmail.com> wrote in message
          > news:MPG.1c4afa a168cef39c98975 c@news.individu al.net...[color=green]
          > > In article <41e068e9$1@new s.bezeqint.net> , yacovr@c.v says...[color=darkred]
          > >> Hello all
          > >> How i can get current username from win2000/xp
          > >> in javascript
          > >> best regards[/color]
          > >
          > > var username = prompt('What is your username?');[/color]
          >
          > from the system not from the user[/color]

          You can't in a cross-platform, cross-browser way in the default security
          configuration.

          Even using a particular platform (Windows) and a particular browser
          (IE), you still cannot in the default security configuration.

          You would have to reduce the security settings to a laughably low level,
          or add the site to the list of Trusted sites to get it to even prompt
          you to allow the ActiveX control needed to make it work to run.

          To reduce your security settings:

          Tools > Internet Options...
          Security tab
          Internet zone
          Custom Level...
          Under ActiveX controls and plug-ins
          Locate "Initialize and script ActiveX controls not marked as safe for
          scripting"
          Set it to "Prompt" (or "Enable" if you really enjoy having your computer
          taken over by everyone else on the Internet)

          To add your site to Trusted Sites:

          Tools > Internet Options...
          Security tab
          Trusted sites zone
          Sites...
          Type the site, click Add

          Note that for a corporate environment, the corporate Intranet could be
          added to everyone's computer using Group Policies.

          --
          Grant Wagner <gwagner@agrico reunited.com>
          comp.lang.javas cript FAQ - http://jibbering.com/faq


          Comment

          Working...