[thelist] please help with this code

bobkabob bobkabob at comcast.net
Tue Dec 30 01:18:50 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>
>

You are missing the '{' that comes after 'if'
And the '{' that comes becore 'else {'

I didnt copy it and try it out or anything, but it appears that this 
is the issue from a quick look.
- bob


More information about the thelist mailing list