in reply to Perl and Ajax Question

ObRepetitionToDriveThePointHome: First get it working with plain old HTML, then add the AJAX functionality as an optional enhancement for those users who have the necessary features (Javascript) enabled in their browser.

When it comes time to add the AJAX piece, I've found that CGI::Ajax is, far and away, the easiest way to do AJAX with Perl. (I'm not going to claim it's the most efficient, but it is the easiest.)

Replies are listed 'Best First'.
Re^2: Perl and Ajax Question
by assemble (Friar) on Feb 04, 2010 at 14:38 UTC

    I used CGI::Ajax when I was first starting out with Ajax & Perl, but it has several really problematic things that it does- especially with properly encoding the query strings.

    These days I just use the Ajax functions in jQuery (they are more powerful anyway) and use JSON if I'm outputting data or sometimes just return HTML.

Re^2: Perl and Ajax Question
by Mr. Muskrat (Canon) on Feb 04, 2010 at 19:32 UTC

    CGI::Ajax is fine for when you first start using AJAX but once you understand how it all works together, you really are better off doing it yourself.