voske
05-14-2003, 08:49 AM
Hi,
what i'd like to do: if you click on the image then an alert comes up. If you answer yes, that particular record should be deleted otherwise nothing happens
the javascript works, but I'm sent to the page www.boekenzoeker.be/test/deletebook.asp/BoekId=Boeknum , but boeknum should be a number like 10
head:
function rusure(BoekNum)
<script>
{
question = confirm("Are you sure?")
if (question !="0"){
top.location = "../test/deletebook.asp?BoekId=BoekNum"
}
}
</script>
body:
<td><div align="center"><font size="2"><a href="" onClick="rusure(<%=ShowBook("BookId")%>); return false;"><div><img src=info.gif width=13 height=23,3></div></a></font></div></td>
i also tried without the quotes in bookid but that also doesn't work. or is there another way? can i use a MsgBox like in VBA and do it that way?
Thanks
what i'd like to do: if you click on the image then an alert comes up. If you answer yes, that particular record should be deleted otherwise nothing happens
the javascript works, but I'm sent to the page www.boekenzoeker.be/test/deletebook.asp/BoekId=Boeknum , but boeknum should be a number like 10
head:
function rusure(BoekNum)
<script>
{
question = confirm("Are you sure?")
if (question !="0"){
top.location = "../test/deletebook.asp?BoekId=BoekNum"
}
}
</script>
body:
<td><div align="center"><font size="2"><a href="" onClick="rusure(<%=ShowBook("BookId")%>); return false;"><div><img src=info.gif width=13 height=23,3></div></a></font></div></td>
i also tried without the quotes in bookid but that also doesn't work. or is there another way? can i use a MsgBox like in VBA and do it that way?
Thanks