Multiple Submit Buttons

  • Thread starter Thread starter Lau Lei Cheong
  • Start date Start date
L

Lau Lei Cheong

Hello,

Let's say that I have multiple submit buttons on a form (imagebuttons
actually, but documentations say that <input type=image> which a called
image buttons should behave like submit buttons). How could I determine
which submit button do I invoked by calling form.submit() in javascript?

Thanks a lot.

Regards,
Lau Lei Cheong
 
Lau Lei Cheong said:
Hello,

Let's say that I have multiple submit buttons on a form (imagebuttons
actually, but documentations say that <input type=image> which a called
image buttons should behave like submit buttons). How could I determine
which submit button do I invoked by calling form.submit() in javascript?

Thanks a lot.

Regards,
Lau Lei Cheong

I think that if you add name and value arguments to your buttons,
the name-and-value of the button clicked will show up in the querystring.

Hans Kesting
 
Can you give me some example?

I tried to change the key's value but it doesn't work.

function rd_delivery_changed(delimethod){
document.getElementsByName("__EVENTARGUMENT") = "ib_confirm";
document.frmcardinfo.submit();
// document.getElementById('ib_confirm').click(); //was this statement,
but since it doesn't work in Netsscape I have to find another way
}
 
Oh, then it won't be able to run properly under another browser such as
Netscape.

Thanks anyway. :)
 
Back
Top