<?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 code error</title><link>https://www.infopathdev.com:443/forums/thread/21480.aspx</link><pubDate>Thu, 05 Jul 2007 15:26:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21480</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21480</wfw:commentRss><description>&lt;p&gt;I have found an interesting bug about this.&amp;nbsp; This code works now in parts of my task pane.&amp;nbsp; Here is the example Code.&lt;/p&gt;&lt;p&gt;&amp;nbsp;function refresh()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.location.reload( false );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;//When I Run this line with the Refresh() function it gives a permission denied error..&lt;br /&gt;&amp;lt;ul class=plain&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a class=p href=&amp;quot;http://www.infopathdev.com/forums/AddPost.aspx?PostID=21474#&amp;quot; OnClick=&amp;quot;refresh();if (View.Name != &amp;#39;Home&amp;#39;) View.SwitchView(&amp;#39;Home&amp;#39;);return false;&amp;quot;&amp;gt;Home&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//When I Run this line it works&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a class=p href=&amp;quot;http://www.infopathdev.com/forums/AddPost.aspx?PostID=21474#&amp;quot; OnClick=&amp;quot;refresh();doSave();&amp;quot;&amp;gt;Close and save&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/li&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The error started when I switched to Full Trust....This error has just confused me to no end.&amp;nbsp; Any ideas??&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Task Pane code error</title><link>https://www.infopathdev.com:443/forums/thread/21474.aspx</link><pubDate>Thu, 05 Jul 2007 12:54:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21474</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21474</wfw:commentRss><description>&lt;p&gt;This code gives an error everytime.&amp;nbsp; I have tried:&lt;/p&gt;&lt;p&gt;window.location.reload( false );&lt;/p&gt;&lt;p&gt;document.location.reload(false);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;they both give me permission denied error every time.&amp;nbsp; As soon as I switched from domain level to full trust this line gave me an error.&amp;nbsp; I can send you my task pane if you would like to forward that to Microsoft. &amp;nbsp; Thanks for your help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Task Pane code error</title><link>https://www.infopathdev.com:443/forums/thread/21441.aspx</link><pubDate>Wed, 04 Jul 2007 08:56:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21441</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21441</wfw:commentRss><description>&lt;p&gt;Hi mhudsonjr,&lt;/p&gt;&lt;p&gt;That&amp;#39;s crazy that you get a Permission Denied error&amp;nbsp;after &lt;em&gt;elevating&lt;/em&gt; the trust level.&amp;nbsp; I don&amp;#39;t know how to solve this problem, but we have seen some weird bugs in the taskpane recently.&amp;nbsp; See this blog post: &lt;a href="http://www.infopathdev.com/blogs/matt/archive/2007/05/31/InfoPath-bug-with-linking-external-files-from-custom-task-pane-HTML.aspx"&gt;http://www.infopathdev.com/blogs/matt/archive/2007/05/31/InfoPath-bug-with-linking-external-files-from-custom-task-pane-HTML.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you think this is a bug and can get a consistent repro, I will forward it to Microsoft to add it to their list.&lt;/p&gt;</description></item><item><title>Task Pane code error</title><link>https://www.infopathdev.com:443/forums/thread/21390.aspx</link><pubDate>Mon, 02 Jul 2007 19:21:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21390</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21390</wfw:commentRss><description>&lt;p&gt;I am testing out a fully trusted form, but my task pane is giving me a Permission Denied error.&amp;nbsp; This is the line of code that is giving me an error.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.location.reload( false );&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a task pane and I use this to refresh the task pane so users know which view they are in.&amp;nbsp; This works with the domain level form, but I am not sure how to get it working with the fully trusted form.&amp;nbsp; Any ideas?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>