Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Could you drop in any suggestions on i) how could we check the cancel clicked and return the same page or refresh the page? ii) instead of checking when 'clicking the submit' is there any other way to check them before ?sub write_form{ my $additional_html = shift; $additional_html ||=''; print $dw->header({'menu' => 1, 'script' => "function check_name() { var sname; var r; sname = document.main.snp.value; confirm(sname) ; }" }); print $additional_html; print $cgi->br(); print $cgi->h4('Register TaqMan Assay'); print $cgi->br(); print $cgi->start_form({-name =>'main', -method =>'post', -action =>'/cgi-bin/prodsoft/Genotyping/register_taqma +n_new.pl', -onSubmit=>'return check_name()'}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Javascript in CGI header
by Anonymous Monk on Feb 01, 2010 at 13:07 UTC | |
|
Re: Javascript in CGI header
by ahmad (Hermit) on Feb 01, 2010 at 13:05 UTC | |
by Anonymous Monk on Feb 01, 2010 at 13:09 UTC | |
by ahmad (Hermit) on Feb 01, 2010 at 13:21 UTC | |
by marto (Cardinal) on Feb 01, 2010 at 13:25 UTC |