<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: using javascript in infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/49310.aspx</link><pubDate>Fri, 20 Nov 2009 23:00:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49310</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49310</wfw:commentRss><description>&lt;p&gt;Is the button the code is on in a web page? I&amp;#39;m wondering if it is a security related error...&lt;/p&gt;</description></item><item><title>using javascript in infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/49146.aspx</link><pubDate>Tue, 17 Nov 2009 12:23:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49146</guid><dc:creator>Binay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49146</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I am trying to get&amp;nbsp; infopath 2007&amp;nbsp;form textbox value using javascript on click of button outside infopath&lt;/p&gt;
&lt;p&gt;I am getting error &lt;strong&gt;&amp;quot;Microsoft JScript runtime error: Automation server can&amp;#39;t create object&amp;quot;&lt;/strong&gt; in first line of the&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;quot;&lt;strong&gt;var&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;strong&gt;&lt;font size="2"&gt; oApp = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ActiveXObject(&amp;quot;InfoPath.Application&amp;quot;);&amp;quot;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;function&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; GetInfopath()&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oApp = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ActiveXObject(&amp;quot;InfoPath.Application&amp;quot;);&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oXDocument = oApp.XDocuments.Open(&amp;quot;http://localhost/Test/xyz.xsn&amp;quot;);&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oParam = oXDocument.DOM.selectSingleNode(&amp;quot;//my:txtName&amp;quot;)&lt;/p&gt;alert(oParam.text);&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;}&lt;/p&gt;
&lt;p&gt;Please Help&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Binay&lt;/p&gt;</description></item></channel></rss>