This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes problem with action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with action " Watch "problem with action " New topic
Author

problem with action

Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
I have a button like



I just notice that when I click "Cancel" from the Confirm() JavaScript dialog window, my action still got fired so it deleted my record even if I click "cancel"

what should I do?

Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
problem solved



Thanks to Eric on the JS forum
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

Yep. DEFINITELY don't forget the "return"!


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with action
 
Similar Threads
how to get confirmation pop-up for delete button
javascript window problem
pop-up confirmation window for html:submit
onmouseup problem with commandLink
NX: my idea about lock and unlock