cian
Technical User
- Oct 11, 2001
- 1,383
Hi guys,
I'm working a php bookmark type script. I have a confirm alert on each link delete button, when confirmed the link gets deleted. Problem is the script processing the deletion needs to read the referrer to refer back to that page after the link is deleted.
Problem: It won't work in IE. It can't seem to check the referrer so returns an error. But it will work in Moz, NS & Opera.
The JS i'm using is below. Do you think it can be changed to also work in IE or should I forget about it? I really do need a confirm on the delete button and the delete script cannot point directly to a named file but must check for a referrer. Any ideas?
Any help greatly appreciated!!
<!--#sig value=''É'' url='' -->
I'm working a php bookmark type script. I have a confirm alert on each link delete button, when confirmed the link gets deleted. Problem is the script processing the deletion needs to read the referrer to refer back to that page after the link is deleted.
Problem: It won't work in IE. It can't seem to check the referrer so returns an error. But it will work in Moz, NS & Opera.
The JS i'm using is below. Do you think it can be changed to also work in IE or should I forget about it? I really do need a confirm on the delete button and the delete script cannot point directly to a named file but must check for a referrer. Any ideas?
Code:
<a href="javascript:if (confirm('Delete link?')) {location.href='process.php?action=delete&id=123';}">Delete</a>
Any help greatly appreciated!!
<!--#sig value=''É'' url='' -->