The problem with JScript is that it requires Full Trust to create the
ActiveXObject. Why bother?
You can use C# and System.UserName, or better yet, create an Active
Directory web service (like the one we sell for a measly $19.95 at
http://www.infopathdev.com/webstore/detail.aspx?itemid=18) to return the
data for you. That way, you can remain Domain Trust which is much less of a
pain.
Cheers,
Patrick Halstead
http://www.infopathdev.com/
> Try this:
>
[quoted text clipped - 33 lines]
> >
> > 'XDocument.UI.Alert "User: " & strLogin & vbcrlf & "Alias: " & strAlias
&
> > vbcrlf & "Manager: " & objManager.Get("name") & _
> > 'vbcrlf & "E-mail: " & strMail
[quoted text clipped - 22 lines]
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights