You must use a request parameter to send clientside values serverside. Checkout the onevent mixin here http://tapestry-stitch.uklance.cloudbees.net/oneventdemo
It uses the second technique you mentioned. This mixin uses prototype's "observe" but could be tweaked to use jquery's "on".