Ich erstelle eine ASP.NET/C# -Anwendung. Ich möchte ein Fortschrittsbalken/Laden erscheinen bei der Auswahl eines RadioButtonList
& DropDownList
. Die RadioButtonList
& DropDownList
ist AutoPostBack
.ASP.NET Anzeige der Fortschrittsleiste/Laden für RadioButtonlist & Dropdownliste
Ich brauche für RadioButtonList
& DropDownList
einen Fortschrittsbalken/Laden angezeigt werden soll.
Vielen Dank.
function ShowProgress() {
setTimeout(function() {
var modal = $('<div />');
modal.addClass("modal");
$('body').append(modal);
var loading = $(".loading");
loading.show();
var top = Math.max($(window).height()/2 - loading[0].offsetHeight/2, 0);
var left = Math.max($(window).width()/2 - loading[0].offsetWidth/2, 0);
loading.css({ top: top, left: left });
}, 200);
}
$('form').live("submit", function() {
ShowProgress();
});