Closed
Bug 7101
Opened 25 years ago
Closed 25 years ago
html:radio buttons don't toggle unless in <box>
Categories
(Core :: XUL, defect, P3)
Tracking
()
VERIFIED
FIXED
M7
People
(Reporter: Brade, Assigned: hyatt)
Details
Below is a test case for enabling and disabling a checkbox from a radio button
pair. This bug has to do with the radio buttons not toggling properly.
To see the bug remove the <box> line and the </box> line.
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="file:///Journey/ImageDim2.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="300" height="300" onload="onLoad()">
<html:script>
function dimSetOriginalSize()
{
// disable checkbox
var constrainCheckbox =
document.getElementById("dimConstrain.checkbox");
if ( constrainCheckbox )
{
constrainCheckbox.setAttribute( "disabled", "true" );
}
}
function dimSetCustomSize()
{
// enable checkbox
var constrainCheckbox =
document.getElementById("dimConstrain.checkbox");
if ( constrainCheckbox )
{
constrainCheckbox.removeAttribute( "disabled" );
constrainCheckbox.setAttribute( "value", "1" );
}
}
function onLoad()
{
dimSetOriginalSize();
}
function dimConstrainClick()
{
}
</html:script>
<box align="vertical">
<html:input type="radio" id="dimOrigSize.radio" name="sizeradio"
value="1" onclick="dimSetOriginalSize()" />
<html:label for="dimOrigSize.radio">Original Size</html:label>
<html:br/>
<html:input type="radio" id="dimCustomSize.radio" name="sizeradio"
onclick="dimSetCustomSize()" />
<html:label for="dimCustomSize.radio">Custom Size</html:label>
</box>
<html:br/>
<html:input type="checkbox" id="dimConstrain.checkbox" onclick=
"dimConstrainClick()" />
<html:label for="dimConstrain.checkbox">Constrain</html:label>
</window>
Updated•25 years ago
|
Assignee: trudelle → evaughan
Comment 1•25 years ago
|
||
reassigning to evaughan for triage
Updated•25 years ago
|
Assignee: evaughan → hyatt
Comment 2•25 years ago
|
||
Hyatt,
Didn't you fix this? I don't believe it had anyting to do with boxes did it?
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•25 years ago
|
||
yup.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 4•25 years ago
|
||
the example above now works
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: gerardok → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•