Javascript Return Function not recognised
Posted: Thu Sep 28, 2006 8:09 am
Hi All,
Can anyone help me, I have a button that refreshes the page and sends a variable through the url. The code basically deletes the record displayed next to the button. The code is below, I have added some javascript to try to confirm the record should be deleted. My program does not seem to be recognising the javascript. Does anyone know what I am doing wrong?
I am finding the record is being deleted regardless of the Javascript being in place.
Many thanks
jamie
Can anyone help me, I have a button that refreshes the page and sends a variable through the url. The code basically deletes the record displayed next to the button. The code is below, I have added some javascript to try to confirm the record should be deleted. My program does not seem to be recognising the javascript. Does anyone know what I am doing wrong?
Code: Select all
if ($Entry == "deleteClient"){
{
?>
<script language="JavaScript" type="text/JavaScript">
return confirm('Are you sure you want to delete this Interview?')
</script>
<?
sql_return("delete from tblClients where CustomerID='$ClientID'");
}Many thanks
jamie