#! /usr/bin/perl -w use strict; use CGI::Ajax; use CGI; my $q = new CGI; my $Show_Form = sub { my $html = ""; $html .= < CGI::Ajax JSON Example

Get The Letter Following the One you Enter

Enter Number:

The JavaScript Object:

After Parsing (use eval)
EOT return $html; }; my $pjx = CGI::Ajax->new('json' => 'pjx_JSON_out.pl'); $pjx->JSDEBUG(1); $pjx->DEBUG(1); print $pjx->build_html($q,$Show_Form); # this outputs the html for the page