File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes User Id in Java Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "User Id in Java Script" Watch "User Id in Java Script" New topic
Author

User Id in Java Script

Praveen Kumar KR
Greenhorn

Joined: May 08, 2002
Posts: 8
Hi ,
Can anyone let me know how to retrieve the user-Id of the user he has logged in into the system ie. the host user id from java script. I am using applets in my application, but I run into security Exception when I call System.getProperty(user.name) in Netscape but not in IE in the applet and access the same in script.
Could any one let me know how to retrieve the host userId of the system.
It is very urgent.
Thanks in Advance
Praveen
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I am not an expert in this matter, but I think that you have to enable something in the applet for netscpe in order to alow the javascript to access the variable. I think Netscape is worried what JavaScript can do with an applet....
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Id in Java Script