does anyone actually read links that get posted?

if you have a form I usually don't use the submit event but the click
event for the button or submit input...
with that I can easily check what button got hit...

it's as simple as that:
$$('input[type=submit]').addEvent('click', function(e) {
  e.stop();
  myRequest.send( $('myForm').toQueryString() + '&' + this.name + '='
+ this.value );
});

Reply via email to