For years I've used this script and it worked just fine. I'm not developing a site on a new server (that shouldn't have anything to do with the problem). Check it out:
The user clicks to delete an object and if he/she confirms the deletion, they are taken to the url provided. However, what is happening is that pressing "OK" gives the same result as "Cancel". Nothing happens. What is up with that? This is how it's being included in the HTML:
Any ideas? This is just crazy...
Code:
function confirmation(message, url) {
if (confirm(message)) {
window.location = url;
} else {
return false;
}
}
The user clicks to delete an object and if he/she confirms the deletion, they are taken to the url provided. However, what is happening is that pressing "OK" gives the same result as "Cancel". Nothing happens. What is up with that? This is how it's being included in the HTML:
Code:
<script language="javascript" src="/path/to/main.js"></script>
<a href="#" onclick="confirmation('Are you sure?', '[URL unfurl="true"]http://www.urlhere.com')">DELETE</a>[/URL]
Any ideas? This is just crazy...