Adobe Dreamweaver Forums



Last 10 THreads :         Flash 10 hangs Internet Explorer 7 on Vista? (Last Post : Gary Goldblum - Replies : 68 - Views : 583 )           »          Oh, Mr and Ms Wizards ... ! (Last Post : Walter Elias - Replies : 1 - Views : 2 )           »          Help a newbie :D (Last Post : garoufal - Replies : 0 - Views : 1 )           »          Strange Flash Player Window (Last Post : Demian Darth - Replies : 0 - Views : 1 )           »          Rate My Site Please (Last Post : Ian Edwards - Replies : 2 - Views : 3 )           »          Temporary files of Flash 10 (Last Post : Johnny Grows - Replies : 0 - Views : 1 )           »          How to get source code in the video examples (Last Post : mikeLeeds - Replies : 6 - Views : 25 )           »          Dynamic Navigation bar from OReilly (Last Post : highlander_1 - Replies : 2 - Views : 3 )           »          titleWindow nightmare (Last Post : SujitG - Replies : 4 - Views : 5 )           »          Newbie problem please help ... (Last Post : tomas.skg - Replies : 2 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 03:56 AM
Olivia Crazy Horse
 
Posts: n/a
Diggs:
Default Popup message

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




Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk