<?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>Validate a URL in InfoPath 2003 in Fully Trusted form.</title><link>https://www.infopathdev.com:443/forums/thread/29227.aspx</link><pubDate>Fri, 06 Jun 2008 18:23:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29227</guid><dc:creator>Petronomicon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29227.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29227</wfw:commentRss><description>&lt;p&gt;Hello - and thanks for such a great site.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is there a way in InfoPath to validate a URL?&amp;nbsp; Like checking a return code or something.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It doesn&amp;#39;t appear that TaskPane.Navigate will return a success/fail value.&amp;nbsp; If it does, that would work too!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp;also tried HTMLDocument.all in the custom task pane to attempt to retrieve HTML values,&amp;nbsp;and I only need the title text, but I keep getting a &amp;quot;does not exist&amp;quot; error. This is my jscript code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;var elem = XDocument.View.Window.TaskPanes(0).HTMLDocument.all&lt;br /&gt;&lt;/em&gt;&lt;em&gt;XDocument.UI.Alert(elem.item(title));&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>