AnneMarieK has asked for the wisdom of the Perl Monks concerning the following question:
<%= $delete_all_skills->input( -form=>$form, -label=>'cancel', -value +=>"Delete All Skills", -javascript=>$question_javascript ) %>
my $question_javascript = 'onclick="askdata()"';
<SCRIPT LANGUAGE="JavaScript"> function askData() { doyou = confirm("Are you sure you want to delete ALL the skills? (OK = + Yes Cancel = No)"); //Your question. if (doyou == true) alert("All your skills have been deleted"); //If your question is answ +ered Yes. else if (doyou == false) alert("Your skills have not been deleted"); //If your question is answ +ered No. </SCRIPT> return( askdata ); }
edited: Wed May 14 17:10:29 by jeffa - title change (was: asking questions)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about CGI and Javascript
by hardburn (Abbot) on May 13, 2003 at 17:58 UTC | |
by shemp (Deacon) on May 13, 2003 at 19:36 UTC | |
by AnneMarieK (Initiate) on May 13, 2003 at 18:07 UTC | |
by hardburn (Abbot) on May 13, 2003 at 18:11 UTC | |
|
Re: Question about CGI and Javascript
by benn (Vicar) on May 13, 2003 at 20:33 UTC | |
|
Re: Question about CGI and Javascript
by Skeeve (Parson) on May 14, 2003 at 06:47 UTC |