AJAX ok, but when JavaScript is disable...

Questions: How can we achieve request always as post? Can we talk about degrade server-side without resolve this problem, is any point in it ? How many percent of users have browsers where JavaScript is off ? Is this problem still important nowadays ? Any suggestions? -- Posted viahttp://www.ruby-forum.com/.

This is actually quite a few questions, and not a short answer, i would suggest searching on these terms:

- ajax /prototype graceful degradation -browser capability detection - browser sniffing/identification

While I don't remember all the details, there was a blog post somewhere fairly recently that talked about this issue and part of the solution was to have a pair of actions delete/destroy that paralleled the new/create and edit/update actions that are get/post HTML pairs. The 'delete' action returns a form that performs the same function as the normal :confirm action when JavaScript is there. That form does a "normal" post to the destroy action.

I can't recall how the JavaScript detection was done, but I know the article covered this.

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com