Henry,
My syntax may be off since I have not have enough coffee yet my syntax may
not be correct but hopefully this will communicate my idea. On the Entry.cfm
page could you not do an onLoad and then throw the alert.
replace your cflocation with this one.
<CFLOCATION URL="Entry.cfm?status=delete" ADDTOKEN="NO">
on the Entry.cfm page have this around your body tag.
<cfif IsDefined(" #url.status#")>
<cfif #url.status# IS "delete">
<body onLoad="del_true()">
</cfif>
</cfif>
And have this up above the body.
<script language="JavaScript">
function del_true()
{
alert("The record was deleted successfully.");
}
</script>
You could take this one step further and include adds, and updates in the url
variable "status" and based on what the status is have a different onLoad
that will let the user know that there was success with the action they just
committed.
Good Luck
Steve
[EMAIL PROTECTED] wrote:
> 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
begin:vcard
n:Black;Steve
tel;fax:972-277-3939
tel;work:972-277-3836
x-mozilla-html:FALSE
url:www.GetThere.com
org:GetThere a Sabre Company;Corporate Web Design
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;1603 LBJ Freeway=0D=0ASuite 710=0D=0A;Dallas;Texas;75234;
end:vcard