Comments on: Global AJAX Cursor Change http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/ Speaking of web development. Tue, 09 Apr 2013 15:30:39 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: Jonas http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-3290 Jonas Tue, 18 Dec 2012 08:55:16 +0000 http://postpostmodern.com/?p=290#comment-3290 I implemented the exact same solution, but I am having trouble with it. My cursor only change back when I move the mouse and stay in 'wait' until then.. Do you have the same behavior ? I implemented the exact same solution, but I am having trouble with it. My cursor only change back when I move the mouse and stay in ‘wait’ until then.. Do you have the same behavior ?

]]>
By: poc http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-3282 poc Thu, 01 Mar 2012 21:53:02 +0000 http://postpostmodern.com/?p=290#comment-3282 I have attempted the same thing as mentioned but for some reason it doesn't work for me. I have posted some code here. Please take a look and advise. http://stackoverflow.com/questions/9442269/change-the-wait-cursor-to-default-auto-after-the-ajax-call-is-complete-using-a Thanks much. I have attempted the same thing as mentioned but for some reason it doesn’t work for me. I have posted some code here. Please take a look and advise. http://stackoverflow.com/questions/9442269/change-the-wait-cursor-to-default-auto-after-the-ajax-call-is-complete-using-a

Thanks much.

]]>
By: Jeff http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-2301 Jeff Sat, 24 Sep 2011 22:07:24 +0000 http://postpostmodern.com/?p=290#comment-2301 Very elegant solution. Thank you! Very elegant solution. Thank you!

]]>
By: Quora http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-2285 Quora Mon, 03 Jan 2011 15:03:15 +0000 http://postpostmodern.com/?p=290#comment-2285 <strong>Is there any middleware for AJAX calls?...</strong> 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()... Is there any middleware for AJAX calls?…

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()…

]]>
By: eric http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-2279 eric Fri, 17 Sep 2010 04:21:59 +0000 http://postpostmodern.com/?p=290#comment-2279 thank you this is totally simple and I had my busy / wait cursor in mere moments! Eric thank you this is totally simple and I had my busy / wait cursor in mere moments!

Eric

]]>
By: Site-Specific Browsers and You | JulioSepia.com http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-2278 Site-Specific Browsers and You | JulioSepia.com Tue, 17 Aug 2010 22:17:38 +0000 http://postpostmodern.com/?p=290#comment-2278 [...] indicators. You could implement a “busy” cursor yourself using Jason T. Johnson’s Global AJAX Cursor Change technique on every [...] […] indicators. You could implement a “busy” cursor yourself using Jason T. Johnson’s Global AJAX Cursor Change technique on every […]

]]>
By: Madison http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-1893 Madison Fri, 11 Sep 2009 17:22:53 +0000 http://postpostmodern.com/?p=290#comment-1893 Hi, Please change the color of the orange text in the orange headers towards greater contrast. I totally missed 'view plain' and ended up cutting and pasting line numbers. - M Hi,

Please change the color of the orange text in the orange headers towards greater contrast. I totally missed ‘view plain’ and ended up cutting and pasting line numbers.

  • M
]]>
By: Jason Johnson http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-1702 Jason Johnson Fri, 07 Aug 2009 12:26:53 +0000 http://postpostmodern.com/?p=290#comment-1702 @Lee - Good point. Thanks for the suggestion. I have updated the post accordingly. @Lee - Good point. Thanks for the suggestion. I have updated the post accordingly.

]]>
By: Lee Parker http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-1700 Lee Parker Mon, 03 Aug 2009 18:33:06 +0000 http://postpostmodern.com/?p=290#comment-1700 This is a great snippet of code. It worked well for our site except when there were multiple ajax requests fired off around the same time. The problem came in that when the first request finished, it would remove the 'busy' class even though another request was still in progress. jQuery provides two other events "ajaxStart" and "ajaxStop". "ajaxStart" only happens when an ajax request begins and no other requests are currently in progress. "ajaxStop" only happens when the last concurrent request is finished. This worked out much better for our purposes. This is a great snippet of code. It worked well for our site except when there were multiple ajax requests fired off around the same time. The problem came in that when the first request finished, it would remove the ‘busy’ class even though another request was still in progress. jQuery provides two other events “ajaxStart” and “ajaxStop”. “ajaxStart” only happens when an ajax request begins and no other requests are currently in progress. “ajaxStop” only happens when the last concurrent request is finished. This worked out much better for our purposes.

]]>
By: Jason Johnson http://postpostmodern.com/2009/01/06/global-ajax-cursor-change/comment-page-1/#comment-1572 Jason Johnson Wed, 29 Apr 2009 19:50:34 +0000 http://postpostmodern.com/?p=290#comment-1572 Paul: It's been a while since I used Prototype, but I think it would look something like this: ~~~~~~~~ // Global AJAX responders Ajax.Responders.register({ onCreate: function() { if (Ajax.activeRequestCount > 0) { $$('html')[0].addClassName('busy'); } }, onComplete: function() { if (Ajax.activeRequestCount == 0) { $$('html')[0].removeClassName('busy'); } } }); ~~~~~~~~ Paul: It’s been a while since I used Prototype, but I think it would look something like this:

// Global AJAX responders
Ajax.Responders.register({ 
  onCreate: function() { 
    if (Ajax.activeRequestCount > 0) {
      $$('html')[0].addClassName('busy');
    }
  }, 
  onComplete: function() { 
    if (Ajax.activeRequestCount == 0) {
      $$('html')[0].removeClassName('busy');
    }
  } 
}); 
]]>