Using SharePoint 2010, if I download a file from a menu item, the page is blocked after the file is downloaded. I believe this is because SharePoint registers
a JavaScript "on submit" handler. In this handler the global variable _spFormOnSubmitCalled is
set to true and
when the download completes, this variable isn't reset like on a normal menu item click unfortunately . Yet while it is true, it will block all subsequent submits.
If I was using a button, it would work if I would set the OnClientClickhandler to the following:
ExportFile.OnClientClick = "_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;";
Unfortunately, the person designing the interface would like to use a menu item for this functionality.
To summarize my question: How to reset the _spFormOnSubmitCalledfrom a menu item click as the menu doesn't appear to support any "On..." handlers?
Thanks, any suggestions are appreciated.