By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Get user name?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.