[Catalyst] RFC & FYI: HTML::FormFu::ExtJS

Kevin Monceaux Kevin at RawFedDogs.net
Thu Feb 12 15:42:20 GMT 2009


Moritz,

On Thu, 12 Feb 2009, onken at houseofdesign.de wrote:

> What kind of error occur when you replace HTML::FormFu->new with
> HTML::FormFu::ExtJS->new in _form?

I wasn't getting an error.  It did partially work.  I know pretty much 
nothing about ExtJS.  I think [% form %] was only outputting part of the 
needed JavaScript.  From all the examples I found it looks like the 
JavaScript in question needed to be in the <head> and my [% form %] was in 
the body.  I moved it into a [% head.extra = BLOCK %] ... [% END %] block, 
which I use to add things to the <head> section of my wrapper, and think I 
almost had the additional JavaScript that was needed right, but couldn't 
get it to render the form.  And I've since backed out all the ExtJS stuff 
I added to the form.

I'm leaning towards jQuery.  It's masked input plugin works more like I 
prefer than any others I've tried so far.  With a quick search I found a 
WYSIWYG jQuery plugin that I'm trying out now.  After adding the needed 
.js and .css files to the <head> of the page I added:

      attributes:
         class:  wysiwyg

to the form's TextArea element, and:

<script type="text/javascript">
$(document).ready(function() {
         $('.wysiwyg').wysiwyg();
     });
</script>

to the page and I have a WYSIWYG textarea editor.



Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!




More information about the Catalyst mailing list