[Catalyst] Catalyst and ExtJS

Moritz Onken onken at houseofdesign.de
Mon Mar 16 13:47:37 GMT 2009


>>
>
> Thanks for the link Moritz,
>
> I'm working my way through your examples from
>
> http://html-formfu.googlecode.com/svn/trunk/HTML-FormFu-ExtJS/lib/HTML/FormFu/ExtJS.pm
>
> Should javascript.tt2 contain this:
>
> <script type="text/javascript">
> Ext.onReady(function(){
> var submitForm = function() {
>   form.getForm().submit({ success: function(rst, req) {
>      // submission was successful and valid } })
>    }
>   });
> };
>
> var form = [% form.render %];
> form.render(document.body);
> });
> </script>
>
> I needed to make these changes to get it to display.

Yes that's correct. HTML::FormFu::ExtJS helps you with creating the  
form only.
The whole logic is up to you.

There are many ways to display a form. I usually put them in an  
Ext.Window.
But you can still render them directly to your html body.

moritz




More information about the Catalyst mailing list