![]() |
jadachDevClub member 8/3/2017 |
Try adding ctrl.setMessage("Sending request to server...");
|
M
|
Molasar author 8/3/2017 |
Try adding ctrl.setMessage("Sending request to server...");
|
![]() |
jadachDevClub member 8/3/2017 |
Maybe something like this can be implemented: |
H
|
heilmanmd 9/5/2017 |
here's how I do it |
![]() |
jadachDevClub member 9/5/2017 |
Thanks for sharing. I will definitely try this out. |
M
|
Molasar author 9/5/2017 |
here's how I do it First I put a spinner into the HTML ( design mode ) in Visual Editor on the page that has the custom button I normally put this just before the ($footer} way at the bottom ... i.e. <DIV class="loading" id="mark"> <IMG id="spinner" src="images/Loadingspinner.gif" border="0"> </DIV> you can find web sites that you can generate your own spinner... and here's the custom CSS you put in your custom CSS in the style this puts the spinner dead center of the web page... etc... .loading{ width:75px; height:75px; position:fixed; top:50%; left:50%; margin-top:-150px; margin-left:-150px; } Now say you wish to have the a button that you wish to have the loading spinner appear when pressed.... not to interfere with the aSP runner gen'd ID's for a button I put the ubiquitous <span id="somebuttonid"> around the <button>.... </button> html </span> with my own ID then in the ONLOAD Javascript event for the page I use the JQIUERY event trigger to show / hide the spinner jQuery comes with asp runner... so below works out of the box... no problems... $("#spinner").hide(); // this hides the spinner when page is first loaded.... $( "#somebuttonid" ).mouseup(function() { // I use mouseup so as to not interfere with the mouse click action of the button // alert( "Handler for mouseup called." ); $("#spinner").show(); // and here show the button }); works great!! hope it helps...
|