#! /usr/bin/perl -w
# this is an example script of how you would use coderefs to define
# your CGI::Ajax functions.
#
# NB The CGI::Ajax object must come AFTER the coderefs are declared.
use strict;
use CGI::Ajax;
use CGI;
my $q = new CGI;
my $exported_fx = sub {
my $value_a = shift;
my $iq = new CGI;
my $a = $q->param('a');
my $b = $q->param('b');
my $test = $q->param('test');
return(
'entered value was: ' . $value_a .
'
a was: ' . $a . "..." .
'
b was: ' . $b . "..." .
'
test was: ' . $test . "..."
);
};
my $Show_Form = sub {
my $html = "";
$html .= <
CGI::Ajax Example