#! /usr/bin/perl -w # this is an example script of how you would use URLs to define # your CGI::Ajax functions. use strict; use CGI::Ajax; use CGI; my $q = new CGI; # the format here implies that 'convert_degrees.pl' is at the same # level in the web server's document root as this script. my $pjx = CGI::Ajax->new( 'myfunc' => 'convert_degrees.pl'); $pjx->JSDEBUG(1); my $Show_Form = sub { my $html = ""; $html .= < CGI::Ajax Outside URL Example
Degrees Centigrade: 
Degrees Kelvin: 
EOT return $html; }; print $pjx->build_html($q,$Show_Form); # this outputs the html for the page