Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: help : submit with javascript problem

Webmaster

2004-10-11

Replies:

Heh, Rick,

I think we both misread what this gentleman is doing. I know I did. I
missed that the button used to submit the form was outside the form.
Why it is outside is not clear. But, he said it was. But, you seem to
have missed that it was being used to submit the form. An odd
situation. The original question, now that I reread it was:

i have a struts form and a button outside the form.

on button click , with javascript i need the submit the form


So, I guess he probably means he has <button> and not <input
type='button'> and you and I have just been jabbering at each other.
LOL Who knows?

Michael McGrady

Rick Reumann wrote:

>
> Actually I'm pretty sure using an html submit button would work as
> well for handling onClick events that don't actually submit a form.
> Using the html button though seems to make sense though just so that
> the page author can see that's it's not actually being used to submit
> a form.



©2008 junlu.com - Jax Systems, LLC, U.S.A.