The CFLocation tag is processed on the server side, before the HTML is sent
to the browser.  Your browser will never receive your javascript code.

try:

<cfcase value = "delete" >
     <CFQUERY NAME="delete_customer" DATASOURCE="sadforms">
Delete  dbo.sft_customer
Where
ID_RSSD = #Form.ID_RSSD# and
ser_id = '#Form.ser_id#' and
cust_LVL_CD = '#Form.cust_LVL_CD#'
</CFQUERY>
<script language="JavaScript">
          window.alert("The record was deleted successfully.");
            document.location.href='Entry.cfm';
</script>
</cfcase>


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 9:00 AM
To: [EMAIL PROTECTED]
Subject: Why my message is not shown


Hi,

When the code below is executed the alert message is not shown. Do I miss
anything?

Thanks,

Henry
......
<cfcase value = "delete" >
     <CFQUERY NAME="delete_customer" DATASOURCE="sadforms">
Delete  dbo.sft_customer
Where
ID_RSSD = #Form.ID_RSSD# and
ser_id = '#Form.ser_id#' and
cust_LVL_CD = '#Form.cust_LVL_CD#'
</CFQUERY>
<script language="JavaScript">
          window.alert("The record was deleted successfully.");
</script>
<CFLOCATION URL="Entry.cfm" ADDTOKEN="NO">
     </cfcase>
</cfswitch>
.....


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to