Unobtrusive scripting adapter for 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.
- jqMobi 1.0 or later;
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'
$ bundle install
//= require jq.mobi //= require jq.mobi_ujs