<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to get user login</title><link>https://www.infopathdev.com:443/forums/thread/19832.aspx</link><pubDate>Mon, 14 May 2007 10:49:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19832</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19832</wfw:commentRss><description>function XDocument::OnLoad(eventObj) { var obj = new ActiveXObject(&amp;quot;WScript.NetWork&amp;quot;); var login = obj.UserName; XDocument.UI.Alert(login); }</description></item><item><title>How to get user login</title><link>https://www.infopathdev.com:443/forums/thread/19796.aspx</link><pubDate>Sun, 13 May 2007 12:40:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19796</guid><dc:creator>liorlankril</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19796</wfw:commentRss><description>&lt;p&gt;I have an InfoPath form with javascript code&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;function XDocument::OnLoad(eventObj) &lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;XDocument.UI.Alert( Application.User.LoginName); // Write your code here //if(XDocument.IsNew) &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I run it I get empty Alert. What&amp;#39;s wrong??&lt;/p&gt;</description></item></channel></rss>