I am running a web page from a server using webrick. How can I capture an event from the web browser? I do not want to do it through JavaScript, but I want to get a response through webrick, and process it in ruby, perhaps using one of the do_... methods. If JavaScript is minimally needed, that is okay. I do not want to redirect to a different page.
I do not know what to put in the value for an event (like onclick).
<input type=button onclick="..." value="Press Me">
After struggling, with the help of this page, I seem to have gotten close to what I wanted:
xxx.html
xxx.js
xxx.rb