squirleegirl
Programmer
Greetings!
I have an asp page that is two frames (left & right). On the left side is a menu with events on it with a "Delete" link for each record.
When the Delete link is clicked, I have a javascipt code that prompts for the reason you are deleting the record and then closes the asp page that opened with the delete prompt and returns you to the page (unrefreshed).
I would like the page to close itself if the link is clicked. I have added an OnClick statement to the following link:
Response.Write("<TD><a target=anothernew href='deleterecord.asp?id=" & varID & "&Student=" & varStudent & "&ClassPos=" & varClassPos & "&FType=" & rs("fldID") & "&DType=DeviceSummary' onclick='Delete()'><FONT color=red face=Arial size=1>Delete</a></FONT>")
And the javascript function is:
<script language="JavaScript">
function delete() {
window.opener.location=window.opener.location;
window.close();
}
</script>
I get the little error message in the bottom of my browser (IE 6) stating the page loaded but with errors. The error states an expecting '(', but I cannot figure it where.
Does anyone have any suggestions?
Thanks in advance.
I have an asp page that is two frames (left & right). On the left side is a menu with events on it with a "Delete" link for each record.
When the Delete link is clicked, I have a javascipt code that prompts for the reason you are deleting the record and then closes the asp page that opened with the delete prompt and returns you to the page (unrefreshed).
I would like the page to close itself if the link is clicked. I have added an OnClick statement to the following link:
Response.Write("<TD><a target=anothernew href='deleterecord.asp?id=" & varID & "&Student=" & varStudent & "&ClassPos=" & varClassPos & "&FType=" & rs("fldID") & "&DType=DeviceSummary' onclick='Delete()'><FONT color=red face=Arial size=1>Delete</a></FONT>")
And the javascript function is:
<script language="JavaScript">
function delete() {
window.opener.location=window.opener.location;
window.close();
}
</script>
I get the little error message in the bottom of my browser (IE 6) stating the page loaded but with errors. The error states an expecting '(', but I cannot figure it where.
Does anyone have any suggestions?
Thanks in advance.