<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: PopUp on Browser close only in InfoPath Forms</title><link>https://www.infopathdev.com:443/forums/thread/80768.aspx</link><pubDate>Thu, 19 Jul 2012 02:51:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80768</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80768.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80768</wfw:commentRss><description>I think it will be fairly difficult to isolate the browser close event and display a prompt for the user to save. At least I&amp;#39;ve never heard of someone being able to do this. The client will prompt on an application close but of course that would mean using the client instead. Sorry couldn&amp;#39;t be more help.</description></item><item><title>PopUp on Browser close only in InfoPath Forms</title><link>https://www.infopathdev.com:443/forums/thread/80767.aspx</link><pubDate>Thu, 19 Jul 2012 02:00:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80767</guid><dc:creator>aammiitt2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80767</wfw:commentRss><description>&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;I am using SP 2010 with infoPath 2010.&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;In order to prevent data loss if users of the form close the browser window, we would like to display that prompts the user to save data before closing? It would be something like “Are you sure you want to close the browser?” with &amp;lt;Yes&amp;gt; to continue closing and &amp;lt;No&amp;gt; to cancel the close and return to the application.&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;I have managed to include a popup on the Forms but this popup comes up every time a user navigates away from a page (this includes button clicks, tab changes etc). Of course, this is not required as all we want is the popup to appear when the user closes the browser window. &lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;As InfoPath forms generates the form at runtime using JavaScript and there are events attached dynamically on every user action (including button clicks), I have not been able to attach an event that will separate the clicks on the Buttons from the window close.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;"&gt;Please suggest.&amp;nbsp;&lt;/span&gt; 
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Amit&lt;/p&gt;</description></item></channel></rss>