On 5/21/06, Dan Horne <[EMAIL PROTECTED]> wrote:
> From: Cees Hek [mailto:[EMAIL PROTECTED]
>
> http://cees.crtconsulting.ca/perl/examples/podviewer/
>

That's nice, Cees. As with many people, my interest in Ajax has been aroused
with all of the press it has been receiving, buI've never been clear about
the best way to start (Should I use Prototype, or CGI::Ajax? How do I
integrate with CGI::App? How much Javascript do I need to learn? etc). Do
you have any other examples online that I can look at?

Hi Dan,

I gave a talk on Ajax and Perl to the Toronto and Waterloo Perl
Mongers.  I'll be giving a similar talk at YAPC this year in Chicago.
The slides and examples for this are available from my subversion
repository.  You might need to make a couple of little changes to get
the examples working, but it should give you some ideas.

http://cgiapp.crtconsulting.ca/svn/other/cees/talks/ajax_and_perl/

I prefer to use a dedicated JavaScript library, and then just roll my
own perl code.  Responding to an AJAX call is no different than
responding to a regular page request.  You just don't return an entire
HTML page, just a snippet instead.  Or you send JSON formatted data,
or XML, or plain text.  How you retrieve and process that data on the
server is no different than any other request.  So I don't see the
benefit of the CGI::Ajax module personally.

HTML::Prototype is a good way to get yourself familiar with the
prototype.js library with the scriptaculous extensions.  But after
using it a while, you will find youself writing the JavaScript
yourself.  In the end generating JavaScript code from Perl is going to
limit what you can do.  You have much more freedom using the
prototype.js and scriptaculous.js libraries and writing the JavaScript
to use them directly.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to