struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Validation + multiple Submit buttons
Date Tue, 14 Nov 2006 14:31:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lance,

Lance Semmens wrote:
> A JS free application? You can assume today's browsers have
> javascript, the web would break otherwise. Sure there are some cross
> platform issues but to go JS free is a tall order and will limit you
> to a clunky UI.

I disagree. I think that JS is nice to use in order to improve the user
experience, but relying on it to work is a recipe for disaster. Even if
JS is available and enabled in the browser, sometimes things just don't
work properly (new patch to the JS library or whatever) and your site
stops cold.

I recommend using JS as an improvement, not as a requirement. Just my
perspective.

> If JS free is your direction, you could wrap your back button in a
> <html:form> that posts to a different action to your save.

That's not going to work, as the form can't have two targets. If you
wrap the button in another form, you'll have to use JS to copy the
values from one form to another.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWdNU9CaO5/Lv0PARAjY1AKCCGsILCwM8mPxNOuJ21x8NjtWecgCfecxC
93wu48nVTO6ZaXUfx0tPzZM=
=9WpP
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message