Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: how to call a method and js?
07-30-2012, 07:33 PM #1
- Join Date
- Jul 2012
- Thanked 0 Times in 0 Posts
how to call a method and js?
I don;t know how it is done :S
I have a button that has an onclick event which I want to happen unless validation fails.
So I got validation done by server atm and thought of replacing it by jscript but I have no idea in it and have no time to start digging into it.
How can I get the button to trigger jscript which will stop sending to server and if jscript returns true will trigger the method?
what is the syntax?
07-30-2012, 11:25 PM #2
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.