Do the same thing that you would do to the "onclick" argument for a link, but on your button.
$action->button( onclick => ... ); Or Jifty->web->link( as_button => 1, onclick => ... ); Or Jifty->web->form->submit( onclick => ... ); -- Andrew Sterling Hanenkamp Interaction Developer Boomer Consulting, Inc. 1.785.537.2358 ext. 117 1.888.266.6375 ext. 117 1.785.537.4545 (fax) 610 Humboldt Manhattan, KS 66502 http://www.boomer.com/about/team/andrew-hanenkamp.html [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas J. Koenig Sent: Sunday, June 17, 2007 8:01 AM To: [EMAIL PROTECTED] Subject: [jifty-devel] Example of a form that sends its rusult to the ownregion? Maybe I'm blind but I'm just overwhelmed by the rich set of documentation and at the moment I cannot figure out how to write a simple form with a simple submit button that sends the content of a simple text field only to its own region. I'm probably looking for the equivalent of Jifty->web->link(onclick => ...) but with a input text field. And I'd prefer a classical button to a text link. Let me rephrase to avoid misunderstanding: the result shall behave ajaxy, all other regions should stay unaltered in the browser. Any pointer appreciated. Thanks, -- andreas _______________________________________________ jifty-devel mailing list [email protected] http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel _______________________________________________ jifty-devel mailing list [email protected] http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
