in reply to Re: Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax in thread Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax
Hi I like this example,
is there any way to have both the HTML and cgi code in one file. For example have the script generate both the html and ajax call? I tried doing it but got stuck when I try but got stuck at the example where it outputs the data,
$tt->process('simple.tmpl', \%data); I tried replacing simple.tmpl with simple.cgi but it did not work.
thanks.
|