Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

pop up confirmation

Posted 14 Jul 2002 04:39:40
1
has voted
14 Jul 2002 04:39:40 Joseph Marshall posted:
I have a repeating recordset in a table that has a delete from next to each record. everything works fine but want i want to do is when i click on the delete picture the submits the form i want a pop up message to come up and ask "are you sure you want to delete such and such" and then you can choose yet or no. if you choose yes then the form is submitted and the record is deleted, if you choose no then the form is not submitted and nothing occurs. can this be done???

thanks
joe

Replies

Replied 14 Jul 2002 05:46:44
14 Jul 2002 05:46:44 aegis kleais replied:
Well, I don't know about yes and no, but you can do

<script language="javascript">
<!--

function check() {

areYouSure = confirm("Are you sure you want to delete that?";

if (areYouSure) {
return true;
}

if (!areYouSure) {
return false;
}

}

//-->
</script>

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 14 Jul 2002 18:33:30
14 Jul 2002 18:33:30 Dave Clarke replied:
or you could try the popupconfirmmsg extension

Dave

Reply to this topic