my $cgi = new CGI; my $pjx = new CGI::Ajax( 'exported_func' => \&perl_func ); print $pjx->build_html( $cgi, \&Show_HTML); sub perl_func { # returns output from database } sub Show_HTML # prints HTML page. { # i want to set ajax function calls on this list items # so when user click on news, news content from another html page # would get displayed in content div # same would happen for home find events list items
##
my $sec_pjx = new CGI::Ajax( 'exported_func' => \&sec_perl_func );
print $sec_pjx->build_html( $cgi, \&Show_HTML);