[thelist] please help with this code

Zhang, Lingling lingz at cs.umd.edu
Mon Dec 29 23:51:20 CST 2003


Hi,
 
It says there's a syntax error with this code:
 
<script language="JavaScript">
function checkIndividualDelete(entry, button)
{
    if (confirm("Are you sure you want to delete this individual record?"))
            entry.deleteIndividual.value = 1;
            entry.deleteIndividualID.value = button.value;
            alert("delete:"+form.deleteIndividual.value+"
"+entry.deleteIndividualID.value);
        response.redirect("dbentry2.asp");
    else {
        button.checked = false;
    }
}
</script>
 
<form name="entry" ...>
...
<input type=radio ... onclick=" checkIndividualDelete(entry, this)">
...
<input type=hidden name="deleteIndividual" value=0>
<input type=hidden name="deleteIndividualID" value="">
 
</FORM>
 
Could someone please tell me what's wrong with this code?
 
Thanks a lot.
LL


More information about the thelist mailing list