Right so.. I understand what you are describing I think and I changed the url of the form so that result can be used. When I click delete this works but the problem I have now is that even if I press cancel on the confirm box it still deletes the entry.
I figured the only thing I'd need to do in the javascript now is return true or false, because the understanding I have is that the form wouldn't submit if it returned false??
Code:
function confirmBox() {
var r=confirm("Are you sure you want to delete this entry?");
if (r==true)
{
return true;
}
else
{
return false;
}
}
so this is what I've got in the javascript now.
The only problem is now that the function seems to break after the confirm box because if I put alert boxes to show the value of r at any time after the confirm box, it doesn't work. Do you have any idea why? 
Getting so frustrated that something that seemed so simple is causing me so much trouble!
|