Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax

by simplitia1 (Initiate)
on Mar 26, 2014 at 00:08 UTC ( #1079754=note: print w/replies, xml ) Need Help??


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.
  • Comment on Re^2: Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax
  • Download Code

Replies are listed 'Best First'.
Re^3: Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax
by Your Mother (Archbishop) on Mar 26, 2014 at 00:25 UTC
Re^3: Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax
by Anonymous Monk on Mar 26, 2014 at 00:10 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2021-10-18 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (72 votes). Check out past polls.

    Notices?