We're implementing a set of Wizard widgets. They'll have the normal complement of buttons you'd see in a Wizard, like Previous, Next, Finish, etc.
I was hoping to use Form Cancel functionality to handle Previous. When someone pushes the Previous button I want to make sure all of the form validation and field setting is skipped and any value changes are ignored. In a non-ajax application, form cancel would work pretty well.
Do you mean to call a listener directly and avoid submitting the form? That would probably work too. Can I do that with a button instead of a link with a Tacos component? Would I used AjaxDirectLink for that? How would I attach it to a button?
Thanks,
-tim
On 4/6/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
I don't know if the notion of "cancel" is really even possible. Yes you could get access to the IO object being used to perform the ajax request, but canceling that would merely close the IO stream.
I think the only possible notion of cancel that's realistic is just allowing you to call a listener in your page / component. At least that sounds right to me. ?On 4/6/06, Tim Downey < [EMAIL PROTECTED]> wrote:Hi,
Maybe this is a silly question, but what is the proper way to Cancel an AjaxForm? Should I use the standard Tapestry solution of using a standard button with an onclick that calls 'document. form-name.events.cancel()'? That seems sort of primitive given all of the dojo connect capabilities.
Will that be properly intercepted by the AjaxForm to cause a real Ajax cancel, or will that perform a standard form submission?
Thanks a lot!-tim
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://opennotion.com
