Ruby on Rails unobtrusive scripting adapter for jqMobi, based on jquery-ujs.
JavaScript Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
MIT-LICENSE.txt
README.md
Rakefile

README.md

Unobtrusive scripting adapter for jqMobi

This is a port of jquery-ujs to jqMobi.

This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:

  • force confirmation dialogs for various actions;
  • make non-GET requests from hyperlinks;
  • make forms or hyperlinks submit data asynchronously with Ajax;
  • have submit buttons become automatically disabled on form submit to prevent double-clicking.

Requirements

Installation

For automated installation in Rails, use the "jqmobi-rails" gem. Place this in your Gemfile:

gem 'jqmobi-rails', :git => 'git://github.com/mshibuya/jqmobi-rails.git'

And run:

$ bundle install

Add these lines to the top of your app/assets/javascripts/application.js file:

//= require jq.mobi
//= require jq.mobi_ujs