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


_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to