Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2006, 10:22 AM
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default capture user login name

I am trying to capture the login name to be able to use it within an intranet web page. I have used <script>document.write("Welcome " + system.getproperties("user.name")</script> without success. I am using visual studio.net.

seeker55

 
Old February 23rd, 2006, 10:43 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Seeker55,

You can do it really easily in VBScript with ActiveX:

set objNet = CreateObject("wscript.network")
document.write("Welcome " + objNet.username)

HTH
Cheers
Joe


 
Old February 23rd, 2006, 12:16 PM
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow thanks interrupt. That is just what i needed. Next is there vbscript that would bring my outlook calendar by day on to this same web page in my intranet.

seeker55






Similar Threads
Thread Thread Starter Forum Replies Last Post
login script: user can't hit "return" for login dmerrill Java Basics 13 July 14th, 2006 07:25 PM
Newbie Help. Login to unique login page per user Kainan Classic ASP Professional 10 May 3rd, 2005 07:47 AM
Capture USER ID in record fixitman Access 3 February 9th, 2005 03:56 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.