× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On
Behalf Of Flaker, Jeff
Sent: Thursday, January 22, 2004 10:48 AM

You can do this with a FOR loop.  Your control is the .length (how
many).

//loop while i is less than the amount of checkboxes present.
For(i=0, i < FormName.CheckBoxName.length, i++)
        {//you then use Form.CheckBoxName[i].value to see the individual
checkbox's value as you loop through them.}
 
-----------------------------------
I've got the the looping figured out it's the retrieval of the checkboxes' 
values that are troubling me.

But this does answer the question I just posted a minute ago, regarding the 
checkbox value.

My javascript knowledge is pretty minimal, am using CGIDEV2 and RPG for the 
entry data processing so excuse if this is a basic question: how to I get the 
RPG program to retrieve this value?  Keeping in mind that there can be more 
then one value passed (multiple checkboxes checked) and the number of 
checkboxes displayed will vary.  So I need the name of the checkbox as well as 
the value.  So there are two unique fields that have to be associated with the 
checkbox and both need to be passed back to the RPG program so that it can 
write DB2 records for each checkbox checked.   


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.