bcochofel has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone point me to an example of using these two modules? I can't get a clue on how to interact with CGI::Ajax and HTML::Template... I'm a newbie on Perl and Ajax but I must use this tools so any help would be appreciated. Thanks, Bruno

Replies are listed 'Best First'.
Re: CGI::Ajax and HTML::Template
by marto (Cardinal) on Nov 29, 2006 at 14:38 UTC
    bcochofel,

    I was searching for an example to show a curious friend of mine and I found a linux magazine article (PDF warning) which should be a good starting point. Since you say that you are new to Perl you should check out the Tutorials section of this site, which has various CGI tutorials including Ovid's great CGI primers.

    Hope this helps.

    Martin
Re: CGI::Ajax and HTML::Template
by Fletch (Bishop) on Nov 29, 2006 at 14:32 UTC

    Funny, I found several examples just on the module's home page (referenced from the perldoc for CGI::Ajax). They're also shipped with the module source (which may not be installed anywhere if you installed using CPAN, granted).

    Update: And if your problem is combining the two, they're pretty much independent. Just have calls to HTML::Template which return your HTML in the sub you pass to the build_html method.