Thanks everyone, I got this working.  It's pretty slick.  This is to 
prevent entry errors.  Here is what I got working:


<SCRIPT language="JavaScript" type="text/JavaScript">
function checkWeight (WeightID, StarID)
        {

        var Weight = document.getElementById(WeightID);
    var Star = document.getElementById(StarID);
        
                Star.checked = true;

        }
</SCRIPT>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                <TD><CENTER>
                                  <INPUT name="Weight1" type="text" 
id="Weight1" size="5" maxlength="3" onChange='checkWeight
("Weight1", "Star1")'>
                                </CENTER></TD>
                        <TD><CENTER>
                              <INPUT type="checkbox" id="Star1" 
name="Star1" value="True" disabled>
                        </CENTER></TD>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks again for all the help.. I hope I can contribute more in the 
future, as I get better at this..  I save all of the posts and glean 
off the important stuff to a "Tip's Notebook" document.  I have 
found some things to be very helpfull....



--- In [email protected], "Dan Powderhill" 
<[EMAIL PROTECTED]> wrote:
> I can't say I've tried passing getElementById an unquoted 
parameter. If it wasn't quoted then by the nature of Javascript it'd 
need to be a variable, constant or function name, whereas the ID in 
this case is a string attribute value.
> 
> All the references I can find suggest that it takes a string as a 
parameter, and therefore needs to be quoted.
> 
> 
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/get
elementbyid.asp
> 
> http://www.mozilla.org/docs/dom/domref/dom_doc_ref48.html
> 
> Dan
> 
> -----Original Message-----
> From: [email protected] [mailto:active-server-
[EMAIL PROTECTED] On Behalf Of David Smart
> Sent: 02 August 2005 14:07
> To: [email protected]
> Subject: Re: [ASP] Updating a CHECKBOX when a value is entered in 
a FORM
> 
> No you don't.
> 
> Dave S
> 
>   ----- Original Message -----
>   From: Dan Powderhill
>   To: [email protected]
>   Sent: Tuesday, August 02, 2005 6:06 PM
>   Subject: RE: [ASP] Updating a CHECKBOX when a value is entered 
in a FORM
> 
> 
>   You need quotes around WeightID and StarID.
> 
>   Dan
> 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hbm6366/M=362335.6886445.7839731.1510227/D=groups/S=1705115381:TM/Y=YAHOO/EXP=1123041665/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to