Socket
Book a DemoInstallSign in
Socket

jquery-spinjax

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-spinjax

Spinners on your ajax forms!

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

A really small, simple plugin for ajaxy (or not) form feedback. One thing that's different about this plugin; it only supports use with a bundler (Browserify, Webpack, etc).

You can use it like this

var $ = require('jquery');

require('./index.js')($);

var $form = $('form').spinjax(); // this form will now spin() on submit

$('#reset').click(function(event) {
  /**
   * Call spinjaxReset() when you're ready to show the user that
   * the form is done doing its thing
   */
  $form.spinjaxReset();
});

The exported function expects jQuery to be passed as an argument, rather than using the standard factory pattern that you're probably used to for libs like this.

spinjax only has one dependency, Spin.js for obvious reasons.

Keywords

jquery

FAQs

Package last updated on 29 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts