<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Accessible Rails Apps &#8211; Rails Links, REST and JavaScript Hidden Forms</title>
	<atom:link href="http://www.napcsweb.com/blog/2009/07/01/accessible-rails-apps-rails-links-rest-and-javascript-hidden-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.napcsweb.com/blog/2009/07/01/accessible-rails-apps-rails-links-rest-and-javascript-hidden-forms/</link>
	<description>professional web development and consulting</description>
	<lastBuildDate>Mon, 22 Aug 2011 18:56:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Johannes</title>
		<link>http://www.napcsweb.com/blog/2009/07/01/accessible-rails-apps-rails-links-rest-and-javascript-hidden-forms/comment-page-1/#comment-27681</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Tue, 23 Mar 2010 10:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.napcsweb.com/blog/2009/07/01/accessible-rails-apps-rails-links-rest-and-javascript-hidden-forms/#comment-27681</guid>
		<description>Thanks for the tip! I use jQuery in my project, so I wrote an equivalent to your Prototype script:

$(&quot;form.button-to&quot;).each(function () {
       var form = $(this);
       var input = form.find(&quot;input[type=submit]&quot;);
       // &quot;button-to&quot; class is not added here, you might want to do that
       var link = $(&#039;&lt;a&gt;&lt;/a&gt;&#039;);
       link.html(input.val());
       link.attr(&quot;href&quot;, form.attr(&quot;action&quot;));
       // html options specified in button_to will be added to the input element
       link.attr(&quot;class&quot;, input.attr(&quot;class&quot;));
       link.click (function () {
         form.submit();
         return false;
       });
       form.after(link);
       form.hide();
});

Maybe someone finding this can make use of it, too.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip! I use jQuery in my project, so I wrote an equivalent to your Prototype script:</p>
<p>$(&#8220;form.button-to&#8221;).each(function () {<br />
       var form = $(this);<br />
       var input = form.find(&#8220;input[type=submit]&#8220;);<br />
       // &#8220;button-to&#8221; class is not added here, you might want to do that<br />
       var link = $(&#8216;<a></a>&#8216;);<br />
       link.html(input.val());<br />
       link.attr(&#8220;href&#8221;, form.attr(&#8220;action&#8221;));<br />
       // html options specified in button_to will be added to the input element<br />
       link.attr(&#8220;class&#8221;, input.attr(&#8220;class&#8221;));<br />
       link.click (function () {<br />
         form.submit();<br />
         return false;<br />
       });<br />
       form.after(link);<br />
       form.hide();<br />
});</p>
<p>Maybe someone finding this can make use of it, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter Schreppers</title>
		<link>http://www.napcsweb.com/blog/2009/07/01/accessible-rails-apps-rails-links-rest-and-javascript-hidden-forms/comment-page-1/#comment-27441</link>
		<dc:creator>Walter Schreppers</dc:creator>
		<pubDate>Fri, 20 Nov 2009 19:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.napcsweb.com/blog/2009/07/01/accessible-rails-apps-rails-links-rest-and-javascript-hidden-forms/#comment-27441</guid>
		<description>Also a rails fan. And think there is indeed an alternative solution to the &#039;javascript needed&#039; problem I bumped into this as well way back when playing with rails for the first time here http://walter.schreppers.com/index.php?page=blogpost&amp;pos=53


Not sure if it still applies basically you add an extra href option to the link tag:
 { :action =&gt; :delete_from_cart, :id =&gt; cart_item.product } ,
:href =&gt; { :action =&gt; :delete_from_cart, :id =&gt; cart_item.product }
)
%&gt; 

Apart from that I really enjoyed your rails tips and insights as much as Ryan Bates advice, keep up the good work!
Soon I will try to post how to do a proper upload progress bar with jQuery &amp; mod_progress for apache in a rails app. You can see the demo app here : http://vet.sitweb.eu.

Cya!</description>
		<content:encoded><![CDATA[<p>Also a rails fan. And think there is indeed an alternative solution to the &#8216;javascript needed&#8217; problem I bumped into this as well way back when playing with rails for the first time here <a href="http://walter.schreppers.com/index.php?page=blogpost&#038;pos=53" rel="nofollow">http://walter.schreppers.com/index.php?page=blogpost&#038;pos=53</a></p>
<p>Not sure if it still applies basically you add an extra href option to the link tag:<br />
 { :action =&gt; :delete_from_cart, :id =&gt; cart_item.product } ,<br />
:href =&gt; { :action =&gt; :delete_from_cart, :id =&gt; cart_item.product }<br />
)<br />
%&gt; </p>
<p>Apart from that I really enjoyed your rails tips and insights as much as Ryan Bates advice, keep up the good work!<br />
Soon I will try to post how to do a proper upload progress bar with jQuery &amp; mod_progress for apache in a rails app. You can see the demo app here : <a href="http://vet.sitweb.eu" rel="nofollow">http://vet.sitweb.eu</a>.</p>
<p>Cya!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.664 seconds -->

