<?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: Scripting Promt to save</title><link>https://www.infopathdev.com:443/forums/thread/15204.aspx</link><pubDate>Tue, 27 Mar 2007 17:30:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15204</guid><dc:creator>skrile</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15204</wfw:commentRss><description>And even cleaner (with window closing too!!!)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Application.ActiveWindow.Close(false);&lt;br /&gt;&lt;/pre&gt;</description></item><item><title>Re: Scripting Promt to save</title><link>https://www.infopathdev.com:443/forums/thread/15203.aspx</link><pubDate>Tue, 27 Mar 2007 15:36:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15203</guid><dc:creator>skrile</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15203.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15203</wfw:commentRss><description>And the answer is....&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;        var oXmlHttp = new ActiveXObject("MSXML2.XMLHTTP");&lt;br /&gt;	oXmlHttp.Open("PUT", XDocument.URI, false);   &lt;br /&gt;	oXmlHttp.Send(XDocument.DOM.xml);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This of course only works when you are opening an existing form, but it works very nicely.  Now, to get the window to close....hmmmmm</description></item><item><title>Scripting Promt to save</title><link>https://www.infopathdev.com:443/forums/thread/13094.aspx</link><pubDate>Tue, 27 Mar 2007 14:57:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13094</guid><dc:creator>skrile</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13094</wfw:commentRss><description>I know I can assign a rule to a button called "Close this form: Prompt" that will prompt the user to save the form if it's "dirty" and then closes the window.  My question is, can I do the same thing from jscript.  I don't have a managed code solution.&lt;br /&gt;&lt;br /&gt;The issue here is I want to build emails when the Save button is clicked so I would like to execute a bunch of other script, but if I use the Close this Form rule, nothing get's executed in my button's OnClick event.</description></item></channel></rss>