Re: XHTML transitional and the onClick
by =?iso-8859-1?Q?Josu=E9?= Figueira Machado <jmachado(at)mindspring.com>
|
Date: |
Fri, 01 Mar 2002 15:18:35 -0500 |
To: |
"Davies, Elizabeth H." <EHDavies(at)West.com>, "HWG-technique Mailing List (E-mail)" <hwg-techniques(at)hwg.org> |
In-Reply-To: |
|
|
todo: View
Thread,
Original
|
|
Elizabeth,
I think the validator is complaining about "onClick". Try "onclick" and it=
=20
should validate.
Josu=E9
At 01:30 PM 3/1/2002 -0600, Davies, Elizabeth H. wrote:
>I might have missed this somewhere, sorry.
>
>I have a set of radio buttons that turn a div visible or hidden depending=
=20
>on if "yes" or "no" is clicked. The validator says that there is no=20
>onClick for this element anymore in XHTML 1.0 Transitional. I don't have=20
>to use this version, but wanted to for this particular project.
>
>What can I use instead of:
>
> <.input type=3D"radio" value=3D"Yes" name=3D"6"=
onClick=3D"yes0();"=20
> /> Yes <br />
> <.input type=3D"radio" value=3D"No" name=3D"6"=
onClick=3D"no0();"=20
> /> No
>
>where the yes0() or no0() are javascript functions that simply make a div=
=20
>visible or hidden. What takes the place of this methodology? Is there a=20
>better way?...
>
>As a side note: I find it ironic with the current discussion of javascript=
=20
>in URL's that you can no longer use the onClick method in an input image=20
>reset button. So my normal method of using an image for reset would be
><.a href=3D"#" onClick=3Ddocument.myForm.reset();no0();"><img blah></a>.=
(will=20
>NOT validate)
>The only way to validate (that I found) that allowed you to use an image=20
>for a reset button was to list the link as
><.a href=3D"javascript:onClick=3Ddocument.myForm.reset();no0 ();" ><img=20
>stuff></a>. (validates)
>
>Elizabeth Davies
>Web Designer
>West Interactive Corporation
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA