Follow up to javascript question.

  • Thread starter Thread starter Davef
  • Start date Start date
D

Davef

thanks Steve the code below worked, but now all my validators do not
work?????

Button1.Attributes.Add("onclick", "return checkBal();")





put the following code on the Page_Load

Button1.Attributes.Add("onclick", "checkBal();")



It does hit the following javascript, but it will continue to post enen with
the return false;

<script type="text/javascript">
function checkBal(){
alert("hi")
return false;
}
</script>


--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
(e-mail address removed)


Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact
(e-mail address removed)
______________________
 
Ah, yes. You've overwritten the validator's onclick event with your own.
You may want to call the validation code from the end of your checkBal
function.
(Remove the attributes.add line temporarily, run the page and view the
source to see which function is being called by the validator, then put the
line back in and call that validator code the same way.)
 
Not sure how you do that steve???


Steve C. Orr said:
Ah, yes. You've overwritten the validator's onclick event with your own.
You may want to call the validation code from the end of your checkBal
function.
(Remove the attributes.add line temporarily, run the page and view the
source to see which function is being called by the validator, then put the
line back in and call that validator code the same way.)

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
 
Back
Top