Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with action  RSS feed

 
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
Bartender
Posts: 18531
61
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
Boost this thread!