WRONG
<a href="#" onClick="Application.showEntry(1); return false;">Show entry</a>
What if JavaScript is turned off? The user will never be able to delete an entry.
COOL
<a href="/entry/1" class="show-entry">Show entry</a> $$('a.show-entry').each(function(el){ el.addEvent('click', function(e){ e = Event(e).stop(); $('container').load(el.get('href')); }); });
Now we can use AJAX, but the post will also be accessible when the JavaScript is turned off.