Help for this page

Select Code to Download


  1. or download this
    print "Content-type: text/html\n\n";
    
  2. or download this
    print "Content-type: application/json\n\n";
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $json = encode_json( [$string] );
    print $cgi->header( -type => 'application/json' );
    print $json;
    
  4. or download this
    function perlExecute(term){
        $.ajax({
    ...
            error: function() {alert("did not work");}
        });
    };