Can I use ajax to call c#?

Is there any middleware for AJAX calls?

  • I need to add cursor wait using document.body.style.cursor = "wait" and after the ajax call i will set that back to default. Instead of doing manually (because its not DRY) i want set this to all the ajax call in the system. Is there any middle ware or any other solution ican use?

  • Answer:

    The following is an example using jQuery, so if you are using it, it is fairly simple to change the cursor style during the call. If you are not using jQuery, you can still follow the idea by implementing event triggers similar to jQuery's ajaxStart() and ajaxStop(). http://postpostmodern.com/instructional/global-ajax-cursor-change/

Raghavendra Kidiyoor at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.