perl comment #!/usr/bin/perl -w perl blank perl comment # ajaxCheckbox.pl - a script to test Ajax functionality perl blank perl code use strict; perl code use CGI qw/:standard/; perl code use CGI::Ajax; perl code use DBI; perl blank perl comment # --- database authenication perl code my $dbh = do 'db.inc'; perl blank perl code my $query = q{ SELECT project.project_id, project.name, project.phase, prio.prio, perl code HEX((255 - prio.prio)) AS hex, begun, tags perl code FROM project JOIN prio perl code ON (project.project_id = prio.project_id) perl code WHERE completed < 1 perl code ORDER BY prio.prio DESC LIMIT 3}; perl blank perl code my $sth = $dbh->prepare($query); perl code $sth->execute(); perl code my $result = $dbh->selectall_arrayref($sth); perl blank perl code my $cgi = new CGI; perl code my $pjx = new CGI::Ajax( 'toStruck' => \&perl_func ); perl code print $pjx->build_html( $cgi, \&Show_HTML); perl blank perl code sub Show_HTML { perl blank perl code use CGI qw/:standard/; perl blank perl code my $html = <
perl code perl code perl code