Help for this page

Select Code to Download


  1. or download this
    my $PDF = ...; # read PDF binary contents from file
    my $LOGSTR = ...; # read LOG file contents
    ...
    my $c = ... # controller
    ...
    $c->render(json => $data); # $data as above
    
  2. or download this
    function ajaxit(
      url, // server endpoint
    ...
      // do the same for logstr
      // or, since it is text, display it in the div verbatim
    }