Try this one:
var oNetwork = new ActiveXObject("WScript.Network");
var strUserName = oNetwork.UserName;
XDocument.DOM.selectSingleNode("/my:myFields/my:Username").text =
strUserName;
Be careful with Upper and Lower cases
Hope this helps,
Teuvo
> var oNetwork = new ActiveXObject("WScript.Network");
> var strUserName = oNetwork.UserName;
[quoted text clipped - 5 lines]
> yupp! I'm a beginner, so please help...
> thx
Nathan - 29 Apr 2005 08:56 GMT
Thx 4 the clue... I guess i'm quite careless enough... =b
however still got an error message :
'XDocument.DOM.selectSingleNode(...)' is null or not an object
rgrds,
NBW
> Try this one:
>
[quoted text clipped - 19 lines]
> > yupp! I'm a beginner, so please help...
> > thx
Nathan - 29 Apr 2005 09:15 GMT
I'm so sorry Teuvo... =)
my mistake.. urgghh... (again n again...)
I change my code a little bit :
XDocument.DOM.selectSingleNode("//my:Username").text = strUserName;
everything is work fine now, Thanks a lot
=)
> Thx 4 the clue... I guess i'm quite careless enough... =b
> however still got an error message :
[quoted text clipped - 26 lines]
> > > yupp! I'm a beginner, so please help...
> > > thx