junkboxmixky
MIS
Hello Again,
I'm tweaking this little page i have that deletes records from the DB. The bulk of the page is written in ASP, and as it stands now the user (who's already supplied their credentials) has the option to delete certain displayed records from the database.
Instead of the confirm alert:
return confirm('Click OK to Permanently remove \n\ record(s) from the database!');
I would like to use a simple password prompt or input prompt. This would require the user to actually do something besides just hit enter or click 'OK'...so that a conscious effort must be made to delete the records.
I'm not concerned with the security of the whole thing...I just want a little extra thought to go into deleting the record...so the old "I dunno.. It just asked me something and I clicked 'OK'" excuse can be negated.
I understand that I am asking alot of end users to actually think...but hope is what keeps me going.
This seems plausible and would be a simple solution without slaughtering the working ASP code.
Thanks again for all your help.
-mk
I'm tweaking this little page i have that deletes records from the DB. The bulk of the page is written in ASP, and as it stands now the user (who's already supplied their credentials) has the option to delete certain displayed records from the database.
Code:
<script type="text/javascript" language="JavaScript">
<!--
function valideer(theForm) {
var checkSelected = false;
for (i = 0; i < theForm.Delete.length; i++)
{
if (theForm.Delete[i].checked)
checkSelected = true;
}
if (!checkSelected)
{
alert("Nothing is selected, arse.");
return (false);
}
else
return confirm('Click OK to Permanently remove \n\ record(s) from the database!');
}
//-->
</script>
<form name="DeleteChecked" onsubmit="return valideer(this);" method="post" action="dodelete.asp">
<input type="checkbox" name="Delete" value="<%=(listRes.Fields.Item("id").Value)%>">
<%
End If
Counter = Counter + 1
listRes.MoveNext
Loop
DateModList.Close
Response.Write("<tr><p><td colspan=""10"" align=""right""> </td></tr>")
Response.Write("<tr><p><td colspan=""10"" align=""right"">")
Response.Write("<input type=""submit"" value=""delete""></center></td></tr></table>")
the recordset displays here!
</form>
Instead of the confirm alert:
return confirm('Click OK to Permanently remove \n\ record(s) from the database!');
I would like to use a simple password prompt or input prompt. This would require the user to actually do something besides just hit enter or click 'OK'...so that a conscious effort must be made to delete the records.
I'm not concerned with the security of the whole thing...I just want a little extra thought to go into deleting the record...so the old "I dunno.. It just asked me something and I clicked 'OK'" excuse can be negated.
I understand that I am asking alot of end users to actually think...but hope is what keeps me going.
This seems plausible and would be a simple solution without slaughtering the working ASP code.
Thanks again for all your help.
-mk