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
Related Q & A:
- How to pass multiple parameters in a single Ajax function?Best solution by stackoverflow.com
- What is the simplest ajax upload plugin or script to be used with wordpress?Best solution by WordPress
- How to use ajax with autocomplete in jquery?Best solution by Stack Overflow
- how to use ajax with json in ruby on rails?Best solution by Stack Overflow
- How to upload image using Ajax request?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.