<?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: Error Message: Undeclared Namespace</title><link>https://www.infopathdev.com:443/forums/thread/32888.aspx</link><pubDate>Tue, 07 Oct 2008 14:35:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32888</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32888.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32888</wfw:commentRss><description>&lt;p&gt;You were correct, thanks&lt;/p&gt;</description></item><item><title>Re: Error Message: Undeclared Namespace</title><link>https://www.infopathdev.com:443/forums/thread/32886.aspx</link><pubDate>Tue, 07 Oct 2008 14:27:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32886</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32886.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32886</wfw:commentRss><description>&lt;p&gt;My first guess is that the Alert method should be capitalized.....&lt;/p&gt;</description></item><item><title>Re: Error Message: Undeclared Namespace</title><link>https://www.infopathdev.com:443/forums/thread/32885.aspx</link><pubDate>Tue, 07 Oct 2008 14:09:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32885</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32885</wfw:commentRss><description>&lt;p&gt;Hilary, thanks for the tip. You were correct, I have added the namespace definition to the top of the js file and the undeclared namespace error is gone, but now I am getting an &amp;quot;Object doesn&amp;#39;t support this property or method error&amp;quot;&amp;nbsp; on the following line: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;XDocument.UI.alert(e.description);&lt;/p&gt;
&lt;p&gt;Any idea what could be wrong with this? i am using IP 2007 and saving as 2003.&lt;/p&gt;
&lt;p&gt;TIA&lt;br /&gt;Dean&lt;/p&gt;</description></item><item><title>Re: Error Message: Undeclared Namespace</title><link>https://www.infopathdev.com:443/forums/thread/32781.aspx</link><pubDate>Fri, 03 Oct 2008 18:17:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32781</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32781</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;When we add an event to an InfoPath form, when working with jscript, IP will add the namespace definition at the top of the .js file. For example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;XDocument.DOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-10-03T18:12:27&amp;quot;&amp;#39;);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Since you are getting an undeclared namespace error, I&amp;#39;m wondering if that was somehow erased or removed from you .js file. Could you check and see?&lt;/p&gt;</description></item><item><title>Error Message: Undeclared Namespace</title><link>https://www.infopathdev.com:443/forums/thread/32778.aspx</link><pubDate>Fri, 03 Oct 2008 17:33:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32778</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32778.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32778</wfw:commentRss><description>&lt;p&gt;I have the following code and I get an Reference to Undeclared Namespace prefix: &amp;#39;my&amp;#39; error. I have looked through this forum and can not figure out my mistake. Could someone please tell me what I am doing wrong?&lt;/p&gt;
&lt;p&gt;function CTRL102_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;// Write your code here&lt;br /&gt;&amp;nbsp;var jobNumber = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:JobNumber&amp;quot;).text;&lt;br /&gt;&amp;nbsp;try&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;var cn = new ActiveXObject(&amp;quot;ADODB.Connection&amp;quot;);&lt;br /&gt;&amp;nbsp;var sqlSP =&amp;quot;EXEC dbo.uspJobAndContract &amp;#39; &amp;quot; + jobNumber;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;cn.ConnectionString=XDocument.DataObjects(&amp;quot;JobData&amp;quot;).QueryAdapter.Connection;&lt;br /&gt;&amp;nbsp;cn.ConnectionTimeout=XDocument.DataObjects(&amp;quot;JobData&amp;quot;).QueryAdapter.Timeout;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;cn.Open();&lt;br /&gt;&amp;nbsp;cn.Execute(sqlSP);&lt;br /&gt;&amp;nbsp;cn.Close();&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;eventObj.ReturnStatus=true;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;catch(e)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;XDocument.UI.alert(e.description);&lt;br /&gt;&amp;nbsp;eventObj.ReturnStatus = false;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;</description></item></channel></rss>