|
Posted by Jonathan N. Little on 07/23/05 17:25
Martin wrote:
<snip>
> Your approach was exactly what I had in mind if I couldn't figure out
> how to do it on the client side. In fact, my next question was going
> to be, "how do I get a radio button to submit the form (without using
> scripting)?".
<snip>
I think this is the Catch-22 part... Only the form's SUBMIT button's
behavior submits the form. To change the default behavior any other form
element, like the RADIO button requires scripting! The only other way
way is to have an 'update' button ,(i.e., a SUBMIT button!) that the
user must click to update the form, just what you are trying to avoid!
<soapbox>
There are applications where client-side scripting is just the 'right'
tool for the job. Fast, responsive, interactive can really enhance the
usability of a webpage without loading the server. But because some
browser's poor security model we have to throw this all out much of time
or find convoluted server-side hacks to try and duplicate what could
easily be done in JavaScript. Wouldn't it be nice to have all the tools
at our disposal?
HTML for content,
CSS for presentation,
CGI for content processing,
AND JavaScript for behavior.
</soapbox>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|