print header(), start_html(-title=>$title, -bgcolor=>"cyan"), checkForm(), $cgi->start_form( -name=>"apps_menu", -method=>"GET", -onsubmit=>"return checkForm( this )" ); #### # ------------------------------ # Display Application Menu. # ------------------------------ print qq( Application: ), $cgi-> popup_menu ( -name=>'ap_name', -values=>\@ap_names, -labels=>\%ap_labels, -size=>'8', # -onclick=>set_apx() Not good! ); set_apx(); # Sort-of works here as planned. #### print br(), submit(-name=>"action", -value=>"Start Application"), reset, end_form(), end_html(); $dbh->disconnect(); exit(0); #### # ---------------------------------------------------- sub set_apx { # Generate some JavaScript here: print qq(); }