Posts/rss Comment from Pat Allan a note about Rails - there's ways of easily creating links to deleting objects which ask for confirmation. <pre>&lt;%= link_to "Delete this invoice", { :controller =&gt; "invoices", :action =&gt; "delete", :id =&gt; }, :confirm =&gt; "Are you sure you want to delete this?" %&gt;</pre> (taken from <a href="//">What is Ruby on Rails?</a>) Of course, that's only client side. Visit the link directly (object/delete/id) and it's gone.Jonathan Snook <>Thu, 27 Oct 2005 01:02:07 +0000 Comment from Benjamin Niemann you are using links, e.g. for a delete action (because it's easier to style...), providing a confirmation page has the additional advantage that you can then use a action="POST" form to perform the 'state of the universe' changing action. Although spiders and bots are usually not a problem (because any sane web app requires a login for such an action), things will get difficult, if browsers start prefetching - or the other way round: browsers cannot implement proper prefetching, because they have to fear unintended side effects...Jonathan Snook <>Thu, 27 Oct 2005 01:33:02 +0000 Comment from John Zeratsky'm glad you wrote about this, Jon. It's interesting from a design perspective as well, because as you mention, the expectation is that you will go to a new page when you click a link. But to be fair, that expectation was destroyed a long time ago. Most of the time, you don't know what a link is going to do -- go to a new page, perform an action immediately, reveal something on the page, open a popup, show a javascript confirmation, etc. I think there's a big opportunity for web designers to add affordances to links, so that it's clear -- before clicking -- what will happen.Jonathan Snook <>Thu, 27 Oct 2005 10:23:13 +0000久久中文字幕免费高清,三级在线看中文字幕完整版,中文字幕偷乱视频在线