Hot!Ajax

...because open source matters

  • Increase font size
  • Default font size
  • Decrease font size

jRails - jQuery on Rails

E-mail
(17 VOTITALY_VOTES, VOTITALY_AVERAGE: 3.71 VOTITALY_OUTOF)

Image

jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails.

By:http://ennerchi.com/projects/jrails
Download:Click here
DEMO

jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library.

Visual Effects

The visual effects in jRails are based on the new jquery-fx library. jRails currently uses a slightly modified version of jquery fx code to get some of the desired effects. This code is evolving and is subject to change. In the meatime, you can get a taste of the visual effects that are currently available.

How to use

Just install and go! Once installed, the previous Prototype/script.aculo.us helpers will be replaced by jQuery ones. In order for them to function correctly, just include the appropriate javascript files in the head of your page.

<script type="text/javascript" src="/javascripts/jquery.js"></script><br />

<script type="text/javascript" src="/javascripts/jquery-ui.js"></script><br />

<script type="text/javascript" src="/javascripts/jquery-fx.js"></script><br />

<script type="text/javascript" src="/javascripts/jrails.js"></script>

You can also use the Rails javascript_include_tag helper with :default to load them automagically.

<%= javascript_include_tag :defaults %>

Install

To install the jRails plugin:

.script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

Then copy the javascript files in the plugin folder to your javascripts directory.


Comments (0)add comment

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy

LBL_NEWERNAME
LBL_OLDERNAME

 

Google Translator

link

  • jQuery

  • MooTools

  • boygj.com

  • Ajax技术论坛

  • QQ网址大全
  • Joomla!-开源天空
  • Web Development (Scripts) - TOP.ORG

We have 57 guests online