My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: rails, rubyonrails, plugin, helper
Feeds:
People details
Project owners:
  timcharper

Makes indicators easy!

Install

  script/plugin install http://indicator.googlecode.com/svn/tags/indicator

Documentation

This plug-in is very easy to use.

It extends the "remote_function" method in Rails. It accepts 2 new parameters:

Available Methods

Examples

Hide target content while loading

  <% indicated_div "hide_target_while_loading" do %>
    Content
  <% end %>
  <div>
    <%= link_to_remote "Update value", :url => { :action=> "partial" }, :indicate_and_update => "hide_target_while_loading" %>
  </div>

Hide link while loading.

  <div id="normal_div">
    This is a regular div.  It will be updated, however the link will be hidden.
  </div>
    
  <% indicated_div "link_div" do %>
    <%= link_to_remote "Update value", :url => { :action=> "partial" }, :indicate => "link_div", :update => "normal_div" %>
  <% end %>

Don't hide any content, but show an indicator next to the link.

  <div id="normal_div_2">
    Content
  </div>
  <%= link_to_remote "Update div", :url => {:action => "partial"}, :indicate => "solo", :update => "normal_div_2"%>
  <%= indicator("solo") %>








Hosted by Google Code