Download indicator for opaque remote verification MVC3

I am performing an opaque remote check of MVC3 to check for username availability.

It works great, but it takes a while to load the verification message! Is there a way to show the available spinner / user name control message during the transition?

+4
source share
2 answers

You can do this with the global ajaxStart and ajaxComplete .

ajaxStart : http://api.jquery.com/ajaxStart/

ajaxComplete : http://api.jquery.com/ajaxComplete/

If you want to implement some specific loading indicators (for example, inside the input text), you need to associate some methods with jQuery and listen to the remote confirmation. Then, when it fires, you can start the indicator launch method, and when it is done, you can return it.

+9
source

Use your attribute id for Activity_pane below

  jQuery('#activity_pane').showLoading(); jQuery('#activity_pane').load( '/path/to/my/url', {}, function() { // //this is the ajax callback // jQuery('#activity_pane').hideLoading(); } ); 

see http://contextllc.com/dev_tools/jQuery/showLoading/latest/jquery.showLoading.example.html

Another link showing how to do this here .

+2
source

All Articles