[prev in list] [next in list] [prev in thread] [next in thread] 

List:       markus-dev
Subject:    Re: Link vs Button proposal
From:       Alex Krassikov <a.krassikov () gmail ! com>
Date:       2011-10-10 17:27:59
Message-ID: CANhHqQDYuyHFLdhc0KsG42SkSeVCCFUCoCTkSKoi80JnvnxjOw () mail ! gmail ! com
[Download RAW message or body]

Nice find!

I'll be sure to keep that in mind for the future.

Alex

On Mon, Oct 10, 2011 at 12:11 PM, Luke Kysow <lkysow@gmail.com> wrote:

> +1 from me too.
>
> The short summary of that article I found is that button_to creates a form
> which is better than a link for actions such as delete because crawlers
> can't activate them and because methods such as delete are handled by the
> browser.
>
> A javascript hook can then deal with any redirection after the request
> returns asynchronously.
> On 2011-10-09 11:41 PM, "Benjamin Vialle" <benjaminvialle@gmail.com>
> wrote:
>
>> That's a go for me too!
>>
>> 2011/10/10 Nelle Varoquaux <nelle.varoquaux@gmail.com>
>>
>>>
>>>
>>> On 10 October 2011 05:03, Mike Conley <mike.d.conley@gmail.com> wrote:
>>>
>>>> Sounds exactly like what we want to do.  Links should not perform
>>>> write/delete/update actions.
>>>>
>>>> It's got my +1!
>>>>
>>>> -Mike
>>>>
>>>> On Oct 9, 2011 8:22 PM, "Severin Gehwolf" <Severin.Gehwolf@utoronto.ca>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> On Sun, 2011-10-09 at 19:38 -0400, Razvan Vlaicu wrote:
>>>>> > While working on a bug today a few points to be made about the use of
>>>>> links
>>>>> > vs buttons came up and it was suggested that they be brought to the
>>>>> > attention of the dev group.
>>>>> >
>>>>> > This forum post sums it up rather nicely, so I won't bother
>>>>> reiterating it
>>>>> > in great detail (thanks to Luke for finding the post):
>>>>> > http://railsforum.com/viewtopic.php?pid=123023#p123023
>>>>> >
>>>>> > The basic premise concludes that buttons should be used instead of
>>>>> links for
>>>>> > actions performed on a page such as calls for create/delete/update or
>>>>> > basically anything that doesn't use the GET method.
>>>>> >
>>>>> > I propose that we use this as a standard for decisions of whether to
>>>>> use
>>>>> > links or buttons. I would also like any feedback anyone else has on
>>>>> the
>>>>> > matter.
>>>>>
>>>>> That sounds good to me. If we do this we should make sure to use this
>>>>> consistently throughout the code base. Why wasn't this a problem
>>>>> before?
>>>>> Because we only recently switched to using RESTfulness :)
>>>>>
>>>>> That's a +1 from me.
>>>>>
>>>>
>>> +1
>>>
>>>
>>>>
>>>>> Thanks,
>>>>> Severin
>>>>>
>>>>>
>>>>>
>>>
>>
>>
>> --
>> Benjamin Vialle
>> +33 (0)6 63 66 40 68
>> benjamin@vialle.eu <benjaminvialle@gmail.com>
>> benjamin.vialle@centraliens-nantes.net
>>
>>
>>

[Attachment #3 (text/html)]

Nice find!<br><br>I&#39;ll be sure to keep that in mind for the \
future.<br><br>Alex<br><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 12:11 PM, \
Luke Kysow <span dir="ltr">&lt;<a \
href="mailto:lkysow@gmail.com">lkysow@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><p>+1 from me too.</p> <p>The short summary of that article \
I found is that button_to creates a form which is better than a link for actions such \
as delete because crawlers can&#39;t activate them and because methods such as delete \
are handled by the browser.</p>


<p>A javascript hook can then deal with any redirection after the request returns \
asynchronously.</p><div><div></div><div class="h5"> <div class="gmail_quote">On \
2011-10-09 11:41 PM, &quot;Benjamin Vialle&quot; &lt;<a \
href="mailto:benjaminvialle@gmail.com" \
target="_blank">benjaminvialle@gmail.com</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">

That&#39;s a go for me too!<br><br><div class="gmail_quote">2011/10/10 Nelle \
Varoquaux <span dir="ltr">&lt;<a href="mailto:nelle.varoquaux@gmail.com" \
target="_blank">nelle.varoquaux@gmail.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">



<br><br><div class="gmail_quote"><div><div></div><div>On 10 October 2011 05:03, Mike \
Conley <span dir="ltr">&lt;<a href="mailto:mike.d.conley@gmail.com" \
target="_blank">mike.d.conley@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <p>Sounds exactly like what we want to do.  Links should not \
perform write/delete/update actions.</p><p>It&#39;s got my +1!</p><p>-Mike<font \
color="#888888"><br></font></p><div><div></div><div><p></p><div class="gmail_quote">




On Oct 9, 2011 8:22 PM, &quot;Severin Gehwolf&quot; &lt;<a \
href="mailto:Severin.Gehwolf@utoronto.ca" \
target="_blank">Severin.Gehwolf@utoronto.ca</a>&gt; wrote:<br type="attribution">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hi,<br>
<br>
On Sun, 2011-10-09 at 19:38 -0400, Razvan Vlaicu wrote:<br>
&gt; While working on a bug today a few points to be made about the use of links<br>
&gt; vs buttons came up and it was suggested that they be brought to the<br>
&gt; attention of the dev group.<br>
&gt;<br>
&gt; This forum post sums it up rather nicely, so I won&#39;t bother reiterating \
it<br> &gt; in great detail (thanks to Luke for finding the post):<br>
&gt; <a href="http://railsforum.com/viewtopic.php?pid=123023#p123023" \
target="_blank">http://railsforum.com/viewtopic.php?pid=123023#p123023</a><br> \
&gt;<br> &gt; The basic premise concludes that buttons should be used instead of \
links for<br> &gt; actions performed on a page such as calls for create/delete/update \
or<br> &gt; basically anything that doesn&#39;t use the GET method.<br>
&gt;<br>
&gt; I propose that we use this as a standard for decisions of whether to use<br>
&gt; links or buttons. I would also like any feedback anyone else has on the<br>
&gt; matter.<br>
<br>
That sounds good to me. If we do this we should make sure to use this<br>
consistently throughout the code base. Why wasn&#39;t this a problem before?<br>
Because we only recently switched to using RESTfulness :)<br>
<br>
That&#39;s a +1 from \
me.<br></blockquote></div></div></div></blockquote><div><br></div></div></div><div>+1</div><div> \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">



<div>
<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
Thanks,<br>
Severin<br>
<br>
<br>
</blockquote></div>
</div></div></blockquote></div><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Benjamin Vialle<br><a \
href="tel:%2B33%20%280%296%2063%2066%2040%2068" value="+33663664068" \
target="_blank">+33 (0)6 63 66 40 68</a><br><a href="mailto:benjaminvialle@gmail.com" \
target="_blank">benjamin@vialle.eu</a><br>

<a href="mailto:benjamin.vialle@centraliens-nantes.net" \
target="_blank">benjamin.vialle@centraliens-nantes.net</a><br>

<br><br>
</blockquote></div>
</div></div></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic