I have a form that requires a part number to be entered. In
my action page, i query against a table using teh part number,
<cfquery name="qry" datasource=" db">
select partnumber from table
where partnumber = '#form.partNumber# '
</cfquery>
If no matches are found, qy.recordcount is 0, I use
cflocation to redirect back to the form with a javascript poppup
message :
<cflocation url="form.cfm? showalert& comingfrom=
actionpage" >
Back in the form, I check :
<cfif isDefined("showAlert ") and comingfrom is
"actionpage" >
<script language = "javascript" >
alert('Part Number not found">
</script>
So if the part number enered is not found, I display a
message back on the form. Everything works ok except that as soon
as the message is cleared (click ok), it seems to come back when
the form is reset or refresh and I get complaints about that.
How can I eliminate the message once it apppears and the ok
button is clicked. I only want it to popup once and thats it. Also,
somebody suggesed I use showAlert but I have no idea what that does
or means.
thanks