;
> >
> >
> >
> >
> > FORM.FLD_#i# = #form['fld_' & i]#
> >
> >
> > You would just use currentrow or a recordID in your query loop rather than
> > an index.
> >
> >
> >
> >
> > -Original Messa
I adapted your function to work...
for(i=#sweeps.minval#;i <=
#sweeps.maxval#; i++)
{
if(document.forms['sweeps'].elements['r_'+i].checked)
{
return true;
}
}
alert('you haven\'t selected anyth
my elements are named differently.
the first checkbox for example is r_20, next is r_21, r_22, r_23, etc.
Will this work with that in mind?
On Wed, 17 Nov 2004 14:32:35 +0100, Micha Schopman
<[EMAIL PROTECTED]> wrote:
> This line should be different.. made a typo
>
> if(document.forms['formname
This line should be different.. made a typo
if(document.forms['formname'].elements['elementname'][i]){
Must be
if(document.forms['formname'].elements['elementname'][i].checked){
You are checking for the bool checked..
Micha Schopman
Software Engineer
Modern Media, Databankweg 12 M, 3821 AL A
That is pretty basic stuff..
var i=document.forms['formname'].elements['elementname'].length;
while(i--){
if(document.forms['formname'].elements['elementname'][i]){
return true;
}
}
alert('you haven\'t selected anything.. ');
return false;
Micha Schopman
Softw
ORM.FLD_#i# = #form['fld_' & i]#
>
>
> You would just use currentrow or a recordID in your query loop rather than
> an index.
>
>
>
>
> -Original Message-----
> From: Greg Morphis [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 16, 2004
F-Talk
Subject: loop over form objects
I have a page with X number of check boxes on it.
I have a query which generates these check boxes.
The query also returns the min and max value of the ID for those check
boxes.
Basically creating
r_23
r_24
r_25
r_26
... and so forth.
I'm trying to loop o
form['r_' & i]
On Tue, 16 Nov 2004 13:34:00 -0600, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I have a page with X number of check boxes on it.
> I have a query which generates these check boxes.
> The query also returns the min and max value of the ID for those check boxes.
> Basically creating
>
I have a page with X number of check boxes on it.
I have a query which generates these check boxes.
The query also returns the min and max value of the ID for those check boxes.
Basically creating
r_23
r_24
r_25
r_26
... and so forth.
I'm trying to loop over these fields to check to see if none are
9 matches
Mail list logo