Posts/rsshttp://www.wowgoldme.com/ Comment from Pat Allanhttp://www.wowgoldme.com/archives/accessibility_and_usability/the_expectation#c2556http://www.wowgoldme.com/posts/c2556Just 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; @invoice.id }, :confirm =&gt; "Are you sure you want to delete this?" %&gt;</pre> (taken from <a href="//www.onlamp.com/pub/a/onlamp/2005/10/13/what_is_rails.html?page=5">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 <jonathan@www.wowgoldme.com>Thu, 27 Oct 2005 01:02:07 +0000 Comment from Benjamin Niemannhttp://www.wowgoldme.com/archives/accessibility_and_usability/the_expectation#c2558http://www.wowgoldme.com/posts/c2558If 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 <jonathan@www.wowgoldme.com>Thu, 27 Oct 2005 01:33:02 +0000 Comment from John Zeratskyhttp://www.wowgoldme.com/archives/accessibility_and_usability/the_expectation#c2560http://www.wowgoldme.com/posts/c2560I'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 <jonathan@www.wowgoldme.com>Thu, 27 Oct 2005 10:23:13 +0000久久中文字幕免费高清,三级在线看中文字幕完整版,中文字幕偷乱视频在线