[thelist] hidden span breaks form value?

Matt Warden mwarden at gmail.com
Mon Apr 3 10:39:19 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Canfield, Joel wrote:
>>On 01/04/06, Canfield, Joel <JCanfield at pacadvantage.org> wrote:
>>
>>>       <input type="radio" name="PrimaryIssue" id="Data_Entry_Error"
>>>value="Data_Entry_Error" onclick="toggleVis('deerror',this);" />
>>
>>Well, what does the toggleVis function do exactly?  On the other radio
>>buttons, you're passing it a string, but this time, your 
>>passing it the whole input element.
> 
> 
> Here's toggleVis in its entirety:
> 
>         function toggleVis(toggleID,clickedID)
>         {
>                 if (clickedID.checked == true)

clickedID is a string. This should be:

if (document.getElementById(clickedID) &&
document.getElementById(clickedID).checked == true)

>     <input type="radio" name="IssueType" id="Project" value="Project"
> class="rdospace" onclick="toggleVis('impactdiv',this);" /> Project</p>

Well, in this one you are passing the object. All the other times you're
calling toggleVis you're passing the ID. I don't remember your original
issue, but could that be causing it?

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEMUGnrI3LObhzHRMRAu6NAJ4+h+1EL9eJB530QuXsbG4M7FNiNACgjJ6v
Vcke87HKyJpOvkwiY8PyCTY=
=3363
-----END PGP SIGNATURE-----



More information about the thelist mailing list