javascript - how to use a progressing image on button click in user control pages -
i have page consists of ajax tabbed panel. each tab uses same user control page. in pages on button click event, placing progressing image untill page loads. functionality working in 1 tab, not working in tabs.
help me out in finding solution.
`<script type="text/javascript"> function buttonclicked() { // document.getelementbyid("formsubmitbutton").style.display = "none"; // undisplay document.getelementbyid("buttonreplacement").style.display = ""; // display return true; } var firstloading = true; function restoresubmitbutton() { if (firstloading) { firstloading = false; return; } //document.getelementbyid("formsubmitbutton").style.display = ""; // display document.getelementbyid("buttonreplacement").style.display = "none"; // undisplay } // disable restoring submit button, disable or delete next line. document.onfocus = restoresubmitbutton; `
Comments
Post a Comment