[Html-widget] form onsubmit action for upload progress

Carl Franks fireartist at gmail.com
Mon Oct 23 12:07:09 GMT 2006


On 23/10/06, Ryan Lauterbach <ryan at radianit.com> wrote:
> Hi,
>
> I wanted to use the Catalyst UploadProgress thingy in a form, but I need
> to set an onsubmit action.  I didn't see a way to do this in the docs,
> but is there a way?  Is it possible to do this in a subclassed
> HTML::Widget::Container, and if anyone has done it do you care to share?

That's no problem, just do

$widget->attributes( onsubmit => 'whatever' );

Cheers,
Carl



More information about the Html-widget mailing list