<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Help: Type Mismatch</title><link>https://www.infopathdev.com:443/forums/thread/59590.aspx</link><pubDate>Mon, 04 Oct 2010 18:44:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59590</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59590.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59590</wfw:commentRss><description>&lt;p&gt;Hi -- you are selecting the node. I think your line with the error should be something along the lines of:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;XDocument.UI.Alert(field7.text);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Help: Type Mismatch</title><link>https://www.infopathdev.com:443/forums/thread/59583.aspx</link><pubDate>Mon, 04 Oct 2010 17:02:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59583</guid><dc:creator>ECH5030</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59583</wfw:commentRss><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;I am trying to have a JavaScript Alert box popup when a user clicks a button.&amp;nbsp; Contained in the description of the popup box would be whatever was written in a textbox (field7).&amp;nbsp; Field 7 is a string, however I get type mismatch with the following code:&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;XDocument.DOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-09-29T18:34:12&amp;quot; xmlns:xd=&amp;quot;http://schemas.microsoft.com/office/infopath/2003&amp;quot;&amp;#39;);&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;function CTRL16_5::OnClick(eventObj)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;var field7 = XDocument.DOM.selectSingleNode(&amp;quot;my:Main/my:myFields/my:field7&amp;quot;); &lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;XDocument.UI.Alert(field7);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This is the line that causes the type mismatch error&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Programming Language:&amp;nbsp; JavaScript&lt;/p&gt;
&lt;p&gt;Application:&amp;nbsp; Microsoft Office InfoPath 2003 SP3&lt;/p&gt;</description></item></channel></rss>