Using EditItem2 to open an InfoPath web form in a dialog works great, but I don't want the calling page to refresh when the form is closed. Any ideas on how to suppress the refresh that occurs after EditItem2 is called?
onclick='javascript:DisableRefreshOnFocus();javascript:EditItem2(event,"https://my.site.com/teams/myteam/_layouts/FormServer.aspx?XmlLocation=/teams/MyTeam/Forms/[Form_id]&ClientInstalled=true&DefaultItemOpen=1");javascript:return false;' target="_self"