Front page | perl.beginners.cgi |
Postings from August 2019
Perl with Ajax issue
Thread Next
From:
Matt Zand
Date:
August 12, 2019 18:46
Subject:
Perl with Ajax issue
Message ID:
CAJHWHyV1WU5cJQofxijZahuUDjPN0OjYw2n5PmXx8mZ5N20dYg@mail.gmail.com
I am making Ajax call to Perl page and try to parse data in perl page and
return results to html page
on my perl page, I have
use strict;
use warnings;
//
use JSON;
use CGI;
my $cgi = CGI->new();
my $string = $cgi->param('sform');
my $json = encode_json( [$string] );
print $cgi->header( -type => 'application/json' );
print $json;
print $string;
I am tesitng this on localhost.
I am getting no response. Should I install Perl on the server or does it
come with Apache package.
--
Cheers,
Matt Zand
Cell: 202-420-9192
Work: 240-200-6131
High School Technology Services <https://myhsts.org/>
DC Web Makers <https://dcwebmakers.com/>
Coding Bootcamps <https://coding-bootcamps.com/>
Thread Next
-
Perl with Ajax issue
by Matt Zand