As long as the form had a unique ID, yes. For now I just made the submit
button behave like the old one by default, but I like this approach better.
musachy
Ian Roughley wrote:
It's been a while since I've been in dojo code. Will this approach
accommodate multiple forms with multiple submits per form?
/Ian
Musachy Barroso wrote:
I wish it would work, I could get rid of my cell phone :).
What I was trying to say is, that I think it would be better(less
code, easier to use) if the submit were a regular submit, with no
javascript attached, and no ajax theme, then we would use FormBind if
the form is using the ajax theme, like
<s:form .... theme="ajax" id="bla">
<s:submit/>
</s:form>
would be translated into something like:
<form ... id="bla">
<input type="submit"/>
</form>
<script ...> new dojo.io.FormBind({formNode: dojo.byId("bla")});
</script>
What do you think?
musachy
Ian Roughley wrote:
The submit works hand-in-hand with the form in the ajax theme.
After all, you need a button to press to remotely submit a form... I
tried mental telepathy a couple of times but it just didn't work ;)
/Ian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]