Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by simplitia1 (Initiate)
on Mar 26, 2014 at 00:08 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-23 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found