GithubHelp home page GithubHelp logo

ssoroka / busy_ajax Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 119 KB

All projects can benefit by having a simple ajax spinner that follows the mouse when ajax calls are being made by the browser in the background. Gives the user a better experience, and saves you from coding it into every "ajaxified" view. This supports prototype only; anyone interested in a jquery version?

Home Page: http://blog.stevensoroka.ca

Ruby 48.43% JavaScript 51.57%

busy_ajax's Introduction

BusyAjax v1.1
=============

Description
===========

All projects can benefit by having a simple ajax spinner that follows the mouse when ajax calls are being made by the browser in the background. Gives the user a better experience, and saves you from coding it into every "ajaxified" view.

Repo is http://github.com/ssoroka/busy_ajax/tree/master

Usage
=====
script/plugin install git://github.com/ssoroka/busy_ajax.git

in your document <head> put <%= javascript_include_tag 'busy_ajax' %>

That's it!!

If you had a pre-v0.2 copy of the project, You no longer need <%= busy_ajax %> in your project.

New in v1.1
===========

- bug was causing spinner to never be displayed. :(  You'd think I would have caught that sooner.

New in v1.0
===========

- made BusyAjaxClass, moved everything there. Now plays nice in global namespace.
- renamed busy_on() and busy_off() to enable() and disable() methods of BusyAjaxClass. 
  Accessible through busy_ajax.enable(); or busy_ajax.disable();

New in v0.3
===========

- Moved project to github. :)

New in v0.2
===========

- New busy_off(); and busy_on(); javascript methods to turn the busy indicator on and off dynamically.
An RJS example of that is:
	page.call 'busy_off'

- busy_ajax method is removed from layout, div is now added dynamically with javascript, very unobtrusive!

- Generally much cleaner.

Written by
Steven Soroka
http://blog.stevensoroka.ca

busy_ajax's People

Contributors

ssoroka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

oleriesenberg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.