• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with action

 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem solved



Thanks to Eric on the JS forum
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep. DEFINITELY don't forget the "return"!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic