[Catalyst] html::prototype syntax in new Cat version

John Wang johncwang at gmail.com
Wed Jul 11 04:44:57 GMT 2007


On 7/10/07, Jason Kohles <email at jasonkohles.com> wrote:
>
>
> On Jul 10, 2007, at 12:35 PM, John Wang wrote:
>
> > I think one reason prototype keeps coming up is because
> > HTML::Prototype exists and is the only wrapper providing Perl
> > access to JS effects. HTML::Prototype doesn't seem to have a lot of
> > functionality in it but it can get some small things going fast. If
> > a HTML::$other_js_lib was created, especially with the same API,
> > Prototype usage would probably stop. A HTML::JQuery might be
> > useful. Just a thought.
> >
>
> http://search.cpan.org/~peterg/JQuery-1.06/
> http://search.cpan.org/~cfranks/HTML-Dojo-0.0403.0/
> http://search.cpan.org/~bct/CGI-Ajax-0.701/


I haven't used any of these but from looking at the POD, I think
HTML::Prototype may be the most attractive to new users.

In JQuery, the following seems strange to me and not like conventional Perl
style that I've seen. Should this style of coding be recommended?

my $clickmenu =3D JQuery::ClickMenu->new(
    remoteProgram =3D> '/cgi-bin/jquery_clickmenu_results.pl'
    ...

HTML::Dojo seems to just load the js includes for you. I don't it lets you
access any of the effects through Perl.

CGI::Ajax doesn't say whether it's built off a JS lib or not but I'm
guessing it's not.

Because of the above, I think HTML::Prototype is probably the best Perl
option of the four.

Just my two cents from reading the POD.

-- =

John Wang
http://www.dev411.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070710/9d1b2=
140/attachment.htm


More information about the Catalyst mailing list