Detecting ASP form submit no longer works
<p>I have the following code on my ASP.Net pages.</p>

<pre><code>$(window).submit(function () {
    prompt = false;
});
</code></pre>

<p>The point of this code is that if the user clicks a button on the page and does a postback for example then I set the prompt flag to false and do not prompt the user with "Are you sure you want to leave this page?"</p>

<p>This worked fine up untill today now all of a sudden anytime the user clicks a button on the page he gets the prompt. I can't figure it out. This function is no longer getting called on any of the pages. Even if i revert the page back to when it worked still nothing.</p>

<p>So the problem is not on the page itself but somewhere else. Any ideas guys?</p>

<p>Thanks,
Michael</p>
