<?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: Task Pane issues</title><link>https://www.infopathdev.com:443/forums/thread/13623.aspx</link><pubDate>Sun, 25 Sep 2005 23:59:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13623</guid><dc:creator>Mik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13623</wfw:commentRss><description>I cannot believe the object model has no way of outputting the xpath of a node.&lt;br /&gt;Thats all I am asking for, if anyone knows of how to do that.</description></item><item><title>Re: Task Pane issues</title><link>https://www.infopathdev.com:443/forums/thread/13622.aspx</link><pubDate>Tue, 20 Sep 2005 23:20:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13622</guid><dc:creator>Mik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13622</wfw:commentRss><description>Yes, but thats the other side of the problem.&lt;br /&gt;I can reference HTML elements by their id, thats no problem, but I had multiple nodes of the same name in different locations (groups) so i was looking for a way to gather the xpath expression of a node so that i may use that to reference the html element id, rather than use the node name (as there were multiple) &lt;br /&gt;&lt;br /&gt;The other place this would come in handy is if you have 20 fields all refering to the same help id. If they were in the same group, and you could get the xpath expression, you could simply use the xpath structure as the html ids.&lt;br /&gt;&lt;br /&gt;I have done a workaround for now, but it has repeating information in the html and i would like to clean it up.&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Task Pane issues</title><link>https://www.infopathdev.com:443/forums/thread/13621.aspx</link><pubDate>Fri, 16 Sep 2005 20:01:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13621</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13621</wfw:commentRss><description>Have you tried using the HTML DOM method: getElementById()&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Task Pane issues</title><link>https://www.infopathdev.com:443/forums/thread/12570.aspx</link><pubDate>Fri, 16 Sep 2005 01:24:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12570</guid><dc:creator>Mik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12570</wfw:commentRss><description>I am still battling with this task pane, but I have a new problem.&lt;br /&gt;At the moment, only half of the fields are availible on the form, so I can use specific node names for now on each section (which puts my other problem on hold) my current problem is that the code used references an ID of a html element in the task pane that is the same as the node name, but there is no div id associated with my section names, or my labels.&lt;br /&gt;Is there a way to provide an error checking on this to say "if that id does exist" so that i may put it in than if statement to avoid errors on the form.&lt;br /&gt;&lt;br /&gt;here is the code again (yes its a copy-paste from an MS lab):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;   if (eventObj.Type == "ContextNode")&lt;br /&gt;   {&lt;br /&gt;      // Retrieve task pane object&lt;br /&gt;      var oTaskPane = XDocument.View.Window.TaskPanes.Item(0);   &lt;br /&gt;&lt;br /&gt;      // Retrieve html object for task pane&lt;br /&gt;      var oHTMLDoc = oTaskPane.HTMLDocument.all;&lt;br /&gt;      &lt;br /&gt;      // Clear previous help topic from task pane&lt;br /&gt;      if (helpString)&lt;br /&gt;         oHTMLDoc.item(helpString).style.display="none";&lt;br /&gt;      &lt;br /&gt;      // Display DIV statement having same ID as the context node name&lt;br /&gt;      oHTMLDoc.item(eventObj.Context.nodeName).style.display="";&lt;br /&gt;&lt;br /&gt;      // Keep record of string displayed, so can later be cleared&lt;br /&gt;      helpString=eventObj.Context.nodeName;&lt;br /&gt;      &lt;br /&gt;      return;&lt;br /&gt;   }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;note that "helpString" is a global variable</description></item></channel></rss>