Hmm, what actually worked for me, even on cell phones, which was the problem, was in my cshtml file for partial viewing. It also includes code for the gray button and the entry "Save ..." until the view is returned back, which avoids people pushing the submit button when they are impatient with slow SQL servers.
<div id="myFutureDayEdit"> <script type="text/javascript"> $(document).ready(function () { $("#submitFutureDayEditVisibleButton").click(function () { $(this).prop('disabled', true); $("#myUserMessage").html("Saving..."); $("#myUserMessage").show(); document.getElementById("submitFutureDayEditHiddenButton").click(); }); }); </script> @Html.ValidationSummary(true) @using (Ajax.BeginForm("SaveFutureDayEdit", "Member", new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "myFutureDayEdit" })) { ... bla bla bla
and
<input id="submitFutureDayEditVisibleButton" type="button" value="Save Changes" /> <input id="submitFutureDayEditHiddenButton" style="display:none;" type="submit" value="SC" /> <div id="myUserMessage"> @if (Model.UserMessage != null) { @Model.UserMessage } </div> <input type="hidden" id="bUnsavedChanges" name="bUnsavedChanges" value="false" /> } </div> <div id="hahuloading"> <div id="hahuloadingcontent"> <p id="hahuloadingspinner"> Saving... </p> </div> </div>
Dronz source share