The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() inside showSuccess()
I have modal overlay after modal-footer and inside modal-content
The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() inside showSuccess() I have modal overlay after modal-footer and inside modal-content [code]
Loading...
Added Successully!
function hideAddModal() { document.getElementById("modalOverlay").style.pointerEvents = "none"; $("#addModal").modal("hide"); $(".modal-backdrop").remove(); } function showSpinner() { $("#loadingSpinner").removeClass("d-none"); $("#successMessage").addClass("d-none"); document.getElementById("modalOverlay").style.pointerEvents = "auto"; } function showSuccess() { $("#loadingSpinner").addClass("d-none"); $("#successMessage").removeClass("d-none"); document.getElementById("modalOverlay").style.pointerEvents = "auto";
setTimeout(function () { hideAddModal(); $("#successMessage").addClass("d-none"); }, 1000) } < /code> Ниже здесь находится фрагмент кода функции отправки после кнопки запуска < /p> bool isInserted = await InsertStored(value); if (isInserted) { BindGridView(); Debug.WriteLine("Registering script to hide modal"); ScriptManager.RegisterStartupScript(this, GetType(), Guid.NewGuid().ToString(), @" showSpinner(); setTimeout(function() { showSuccess(); }, 500); ", true); } else { // Another ScriptManager to show alert error message } < /code> ** РЕДАКТИРОВАТЬ *** < /p> Все, кажется, работает. Я использую onclientClick () [/code] на Spinner, но ShowCcess () не работает. Только hideaddmodal () работает.
The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() inside showSuccess()
I have modal overlay after...
The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() inside showSuccess()
I have modal overlay after...
The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() inside showSuccess()
I have modal overlay after...
The current interaction behavior is that after I click submit the form, it should have delayed time with spinner and success message but they're still not showing only modal close in setTimeout() inside showSuccess()
I have modal overlay after...
У меня есть требование показать модальную коробку поверх другой модальной коробки. Все работает нормально. Но серой фон всегда показывается для самого низкого модала. Я хочу, чтобы серый фон показал позади самой модальной, когда он открыт. Я...