Follow up to javascript question.

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)
______________________
 
S

Steve C. Orr, MCSD

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.)
 
D

Davef

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top