Hi all,
I have a requirement that when the user clicks on the submit button for a form that the button be disabled so they won't/can't click it again before the next page appears. Sounds simple enough. I put some javascript like this:
function disable( input ) { input.disable=true; }
To test it out in the html template I put this:
<input type="submit" jwcid="@Submit" tag="Yes" listener="..." onClick="javascript:disable(this);"/>
This works fine when the submit button is part of a form that uses the form's listener. But when I have multiple buttons and need to rely oon the buttons listener and tag attributes this fails. I made my own Submit component to add debugging and at first I thought that because it was disabled the rewind of the form was terminating. It turns out that the selected property is not being updated because the parameter for my component ( I assume this oarameter is the Tag value) is never being set. I think this is a function of the Direct service but I am still new to Tapestry.
Can someone shine some light on what it is I have to do to make this work? I don't see why the Tag attribute is not being placed in the parameters.
Does my handling of the onclick have to change?
By the way I attempted to make my own Submit component using a Script but I could not get the initialization (onload) to do what I wanted. Anyway that is another question for another time.
Any and all suggestions are quite welcome.
BTW I am using Firefox but IE will be supported as well
Thanks again
Doug Lochart Cape Computing Corp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]