Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to retrieve checked fields
Message
De
02/08/2001 02:46:40
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Javascript
Titre:
Fastest way to retrieve checked fields
Divers
Thread ID:
00538718
Message ID:
00538718
Vues:
50
I have a table with 100 records. Each record contains a checkbox field with the unique ID of the record. I also have a hidden field of that form which contains all my ID. So, MessageMark contains Message2323,Message6454,Message3524,Message0090,...

The user may check several records. At the javascript level, before submitting the form, I need to know which checkboxes have been checked and store them into MessageMarkFinal.

Normally, I will do that code in Visual FoxPro. This time I have to do it before submitting the form. What would be the fastest way to scan the MessageMark variables to retrieve the checked variables into MessageMarkFinal?

The table is like this:

INPUT TYPE=Checkbox NAME=Message2323
INPUT TYPE=Checkbox NAME=Message6454
INPUT TYPE=Checkbox NAME=Message3524
INPUT TYPE=Checkbox NAME=Message0090

The hidden field is like this:
INPUT TYPE=Hidden NAME=MessageMark VALUE=Message2323,Message6454,Message3524,Message0090,...

Assuming record 2 and 4 are checked, I should have this in MessageMarkFinal:

INPUT TYPE=Hidden NAME=MessageMarkFinal VALUE=Message6454,Message0090
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform