<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <id>tag:www.refactormycode.com,2007:users31</id>
  <link type="application/atom+xml" href="http://www.refactormycode.com/users/31" rel="self"/>
  <title>Andrew Kaspick</title>
  <updated>Fri Sep 28 01:33:11 -0700 2007</updated>
  <entry>
    <id>tag:www.refactormycode.com,2007:Refactor77</id>
    <published>2007-09-28T01:33:11-07:00</published>
    <title>[Ruby] On link_to_remote_with_spinner</title>
    <content type="html">&lt;p&gt;Using my plugin remote_helpers from &lt;a href="http://agilewebdevelopment.com/plugins/remote_helpers" target="_blank"&gt;http://agilewebdevelopment.com/plugins/remote_helpers&lt;/a&gt;, all of the spinner functionality is taken care of.  It also works with any method that makes a remote function call.&lt;/p&gt;

&lt;p&gt;See the plugin README in the plugin for more detailed usage.&lt;/p&gt;

&lt;p&gt;The code below is the most basic usage.  The 'indicator' method contains the spinner image and that's all there is to it... the spinner automatically gets displayed and hidden.&lt;/p&gt;

&lt;pre&gt;&amp;lt;%= link_to_remote 'Text', :url =&amp;gt; your_url %&amp;gt; &amp;lt;%= indicator %&amp;gt;&lt;/pre&gt;</content>
    <author>
      <name>Andrew Kaspick</name>
      <email>andrew@redlinesoftware.com</email>
    </author>
    <link type="text/html" href="http://www.refactormycode.com/codes/13-link_to_remote_with_spinner/refactors/77" rel="alternate"/>
  </entry>
</feed>

