title: Liftweb: create a form that can be submitted both traditionally and with AJAX
body: <p>Is it possible in Lift web framework to create forms (and links) that react via AJAX, but also work without Javascript support? If so, how?</p>
  
  <p>When I build the form using <code>&lt;lift:form.ajax&gt;</code>, the form's <code>action</code> is set to <code>javascript://</code> so that it no longer submits without JS. If I build the form without explicit AJAX support, I don't know how to insert the AJAX functionality.</p>
  
  <p>I suppose I could build a RESTful interface (we'll have to build that anyway) and write custom Javascript to submit the form through that. I would like to avoid code duplication, though: if it is possible to handle all three inputs (RESTful, traditional HTTP POST, AJAX) with the same code, that would be best.</p>