This sounds promising, but I am still missing one piece of the puzzle.

if (box.checked == true) box.checked = false; 
//AT this point how would I send the NAME of the checkbox and it's VALUE to the 
RPG program associated with the FORM's ACTION attribute?

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On
Behalf Of Mark A. Manske
Don,

If I understand this from a simple viewpoint - 
all you need to do in your cgi-rpg is to build the
java script on the fly when you write out the html code,
at that point in time you will have the total number of 
check boxes.

I have one cgi-rpg that allows for a single button to 
check or un-check all the boxes, here is the script code:

   <SCRIPT LANGUAGE="JavaScript1.2">  
function CheckALL() {            
for (var j = 1; j <=6; j++)  {                        
box = eval("document.keys.SRPI" + j + "_C");                    
if (box.checked == false) box.checked = true;                   
   }                            
  }                             
                                
function UNCheckALL() {          
for (var j = 1; j <=6; j++)  {                        
box = eval("document.keys.SRPI" + j + "_C");                    
if (box.checked == true) box.checked = false;                   
   }                            
  }                             
                                
//   End  -->                   </SCRIPT>


In this example, there are only six boxes for checking/unchecking.
I build this part of the html page after I know how many boxes I have.

I also build the html for the check boxes with the variable name; in this
case of SRPI1_C to SRPI6_C.



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.