File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "User Id in Java Script" Watch "User Id in Java Script" New topic

User Id in Java Script

Praveen Kumar KR

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( 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
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
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....
I agree. Here's the link:
subject: User Id in Java Script
jQuery in Action, 3rd edition