If you are using any of the submit kind of components you only need to set
the submitType parameter:

submitType="literal:cancel"

I'm assuming you are working in 4.1 if this is the error you are getting.

There is also a rather exhaustive reference for the client side api wrt
forms here:

http://tapestry.apache.org/tapestry4.1/javascript/form.html

On 8/28/06, Sam Gendler <[EMAIL PROTECTED]> wrote:

According to the docs, calling document.formname.events.cancel()
should do whatever is necessary to disable client side validation and
call my cancel listener on the server.  However, when I do this in IE,
I am getting an error about the 'events' object not existing.

JS error - events is null or not an object

Surely I am not the first to encounter this problem.  Anyone got a
solution for cancelling a form submission in firefox AND ie? Looking
at Form.js

Maybe something like Tapestry.find(formname).events.cancel() would
work?  I haven't tried it yet, but that is how the events object is
assigned in Form.js:

Tapestry.register_form = function(formId)
{
  var form = this.find(formId);

  form.events = new FormEventManager(form);
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to