473,387 Members | 1,574 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.

What would cause radio buttons to not be clickable?

I have a set of radio buttons that are not clickable in Internet
Explorer. I dynamically generated them using DOM functions. The
arrValues array below stores integers.

obj4 = document.createElement("input");
obj4.name = "f0";
obj4.type = "radio";
obj4.value = 1;
if (arrValues[0] == obj4.value) {
obj4.checked = "true";
}
obj5 = document.createElement("input");
obj5.name = "f0";
obj5.type = "radio";
obj5.value = 2;
if (arrValues[0] == obj5.value) {
obj5.checked = "true";
}
obj6 = document.createElement("input");
obj6.name = "f0";
obj6.type = "radio";
obj6.value = 3;
if (arrValues[0] == obj6.value) {
obj6.checked = "true";
}2

May 1 '06 #1
3 5217
The alMIGHTY N wrote:
I have a set of radio buttons that are not clickable in Internet
Explorer.
Are they clickable in real browsers?
I dynamically generated them using DOM functions. The
arrValues array below stores integers.
<schnipp>
if (arrValues[0] == obj6.value) {
obj6.checked = "true";
}2 <------ what is this "2"


How about a URL to a working page?

--
-bts
-Warning: I brake for lawn deer
May 1 '06 #2
Beauregard T. Shagnasty wrote :
The alMIGHTY N wrote:
I have a set of radio buttons that are not clickable in Internet
Explorer.


Are they clickable in real browsers?
I dynamically generated them using DOM functions. The
arrValues array below stores integers.


<schnipp>
if (arrValues[0] == obj6.value) {
obj6.checked = "true";
I believe it should be defaultChecked, not checked.
http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-20509171
}2 <------ what is this "2"


How about a URL to a working page?


http://www.gtalbot.org/BrowserBugsSe...dioButton.html

Workaround:

http://www.gtalbot.org/DHTMLSection/...ioButtons.html

Gérard
--
remove blah to email me
May 5 '06 #3
The alMIGHTY N wrote :
I have a set of radio buttons that are not clickable in Internet
Explorer. I dynamically generated them using DOM functions. The
arrValues array below stores integers.

obj4 = document.createElement("input");
obj4.name = "f0";
obj4.type = "radio";
obj4.value = 1;
if (arrValues[0] == obj4.value) {
obj4.checked = "true";
}
obj5 = document.createElement("input");
obj5.name = "f0";
obj5.type = "radio";
obj5.value = 2;
if (arrValues[0] == obj5.value) {
obj5.checked = "true";
}
obj6 = document.createElement("input");
obj6.name = "f0";
obj6.type = "radio";
obj6.value = 3;
if (arrValues[0] == obj6.value) {
obj6.checked = "true";
}2


It should be defaultChecked. DOM 2 HTML says "checked represents current
state of form control" while defaultChecked represents the default, the
start status of the form control.

Pretty much everything was reported to Microsoft more than 1 year ago:

http://channel9.msdn.com/wiki/defaul...rogrammingBugs
Dynamically creating and DOM-inserting Radio Buttons

Gérard
--
remove blah to email me
May 5 '06 #4

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

Similar topics

1
by: Paul THompson | last post by:
I am using IE to hide sections of a form. When I display the first section (name='ea'), the form widgets are not clickable in IE nor do they accept focus. When I display the 3rd section...
2
by: obsidian8 | last post by:
Hi All, I have looked around for an answer to this question, but haven't found one as of yet. I'm trying to use javascript to dynamically create raido buttons. I am able to create them easily...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
2
by: Rob | last post by:
Hi all, I've got multiple sets of radio button that are dynamically created in code and populated by a database query. The query returns about 20 recordsets with 3 radio buttons per recordset and...
3
by: Random | last post by:
I need to generate a list of radio buttons, from either a database or an XML file (I'd prefer to go the XL route). Now, for each item in my database/XMl file, I have a foreign key to data that I...
7
by: nathaniel.k.lee | last post by:
Is it not possible, in IE, to dynamically click a radio button? I'm grabbing some values from a database and using them to populate radio buttons on a page. I have alternate code for Firefox...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
4
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
4
by: CURTISLESPERANCE | last post by:
Hi, I am trying to figure out if this is possible. I need to display 4 radio buttons next to a question then 3 radio buttons after. The 2 different group radio buttons and questions are coming from...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.