473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Follow up to javascript question.

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
da***@helixpoint.com
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
da***@helixpoint.com
______________________
Nov 17 '05 #1
2 848
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

"Davef" <da**@helixpoint.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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
da***@helixpoint.com
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 da***@helixpoint.com
______________________

Nov 17 '05 #2
Not sure how you do that steve???
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
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

"Davef" <da**@helixpoint.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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
da***@helixpoint.com
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
da***@helixpoint.com
______________________


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Larry R Harrison Jr | last post by:
I have them working now, courtesy of the link given in the prior thread--the HVMenu over at Dynamic Drive myself. http://www.dynamicdrive.com I have them working as side-bar menus, not...
1
by: ido | last post by:
Hi all this is my first post here :) I would like to know something about using javascript programaticaly The thing is i have this web site on which when i press a button i uses a function of...
93
by: lorlarz | last post by:
Here, let's see what you JavaScript programmers have got Here is a place to share your large or larger full-blown JavaScript applications: real.comp.lang.js.apps (a new google group) Here is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.