title: How can I electively ignore a knockout 'submit' binding?
body: <p>I have a form with the knockout binding <code>data-bind="submit: saveProfileChanges"</code>. The viewmodel function <code>saveProfileChanges</code> calls into the following new code:</p>
  
  <pre><code>dataAccess.submitJsonWithFileRequestjQueryWithErrorFunction = function () {
      function uploadImageComplete() {
          // Hanlde response from image post.
      }
      $("#upload_iframe").load(function() {
          uploadImageComplete();
      });
      $("#userProfileForm").submit();
  };
  </code></pre>
  
  <p>I have added this code to allow a pseudo-ajax image upload for IE9, using the iframe fallback. I have tried jquery plugins for this upload without success and decided a plain and simple approach would be less risky and minimise impact on loads of functionality I am not aware of.</p>
  
  <p>The problem is now the <code>submit</code> call in my upload method triggers the ko bound <code>saveProfileChanges</code>, which calls my upload function again, ad-nauseum. Is there a way I can ignore the ko binding for just my local call to <code>submit</code>? My less savouryu alternative is to set a flag in my viewmodel while busy doing an upload, so <code>saveProfileChanges</code> will simply return without doing anything further, until my upload finishes.</p>