473,387 Members | 1,374 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,387 software developers and data experts.

Radio Button List ---> onclick event. You can never know when the user clicked?

did any of you guys notice when adding an onclick javascript to a Radio
Button List, it will get fired BEFORE the Dot is set if you click on the
Text for that particular Circle.

My onlick calls this function:

if (document.Form1.UserInfo_optStatus_2.checked)
{
....
}

I don't see much of a way around this?? This isn't good... any help
appreciated!

I think this is what happens in the Radio Button List:

IF CLICK ON TEXT LABEL
FIRE ONCLICK EVENT
TELL CIRCLE TO GET FILLED

IF CLICK ON CIRCLE (get filled)
FIRE ONCLICK EVENT
in short, the event can fire and you will not know what the user clicked on.
Nov 17 '05 #1
1 5532
I fixed this problem.

It's a combination of a .Net Bug, and some other things.

"Leeor Geva" <le***@chcrx.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
did any of you guys notice when adding an onclick javascript to a Radio
Button List, it will get fired BEFORE the Dot is set if you click on the
Text for that particular Circle.

My onlick calls this function:

if (document.Form1.UserInfo_optStatus_2.checked)
{
...
}

I don't see much of a way around this?? This isn't good... any help
appreciated!

I think this is what happens in the Radio Button List:

IF CLICK ON TEXT LABEL
FIRE ONCLICK EVENT
TELL CIRCLE TO GET FILLED

IF CLICK ON CIRCLE (get filled)
FIRE ONCLICK EVENT
in short, the event can fire and you will not know what the user clicked on.

Nov 17 '05 #2

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

Similar topics

1
by: Poppy | last post by:
I have a radio button list value = 1, text = "Option 1" value = 2, text = "Option 2" It might soung stupid but how do I get the first item to display if I enter the number 1 and the second...
1
by: Michael Albanese | last post by:
I am developing an application to handle my compay's OSHA reporting requirements. Some of the input criteria are technical and narowly defined, so I was trying to prvide what i call "Context...
2
by: Asit | last post by:
How can i know when user clicks X button of the browser ? I have to write some code when user clicks X button of browser. What is the event for capturing this event ? Help needed ASAP. Asit
2
by: jayuya | last post by:
How can i check in java script if a asp.net radio button list server control is selected? I have some custom javascript function in the client side that needs to run but I don't see the way to...
1
by: John Criswell | last post by:
I have created a radio button list programmatically. C# SqlConnection conn = new SqlConnection("data source=localhost; integrated security=true; initial catalog=pubs"); SqlCommand cmdAuthors =...
2
by: KathyB | last post by:
Hi. I have a radio button list with list items assigned via a datareader from a database. Everything looks fine, the items are there on page load, I can click one, etc. There is also a required...
0
by: Octopus0 | last post by:
Dear all, I developed web application VB.net , and i had an Radio Button List. the problem is the Horizonal bar of the Radio button list dosen't work it apperars as disable. i add to the HTML...
0
by: Dan | last post by:
Issue making textbox visible based on specific input from a radio button list in an EditItemTemplate I want to setup a gridview that when in edit mode and when the user selects "Other" from a...
1
by: querry | last post by:
`Hi all, I am trying to get the selected radio button item in a radio button list using javascript. I am successful at doing this, but the problem is I have several Radio Button Lists, and the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.