I do NOT want the type="submit" because it changes the page -
I'm submitting thru ajax.. so I'm using type="button"
<input type="button" value="This is a submit button" name="submit1" onClick="submitMe( this.form )">
<input type="button" value="Another submit button" name="submit2" onClick="submitMe( this.form )">
<input type="button" value="Yet another submit button!" name="submit3" onClick="submitMe( this.form )">
However ALL the button names appear as passed form variables - I'd expect only the clicked button to be passed, like checkboxes or submit buttons...(if its NOT selected - don't pass it)
how can I determine WHICH button was selected - I need this because the action will be different based on button.
Using prototype 'AJAX.UPDATER' to handle the form.
The JS looks like this...
function submitMe( frm ) {
var div = 'msgDiv';
var url = 'mypage.aspx';
var pars = Form.serialize( frm );
var myAjax = new Ajax.Updater( div, url, { asynchronous:true, method:'post', parameters:pars });
}
thx