469,924 Members | 1,373 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,924 developers. It's quick & easy.

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="javascript">
document.write (system.properties("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
Jul 20 '05 #1
2 5206
FrankBooth wrote on 21 Dec 2003 at Sun, 21 Dec 2003 05:17:04 GMT:
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="javascript">
document.write (system.properties("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?


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.******@blueyonder.co.invalid (replace ".invalid" with ".uk")
Jul 20 '05 #2
What web server software are you using--IIS, Apache...?
Is this an intra- or inter- net application?

"FrankBooth" <ag****@epnet.com> wrote in message
news:8c**************************@posting.google.c om...
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="javascript">
document.write (system.properties("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

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tom Loach | last post: by
2 posts views Thread by Technical Group | last post: by
6 posts views Thread by Andrew Chalk | last post: by
3 posts views Thread by Terry Olsen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.