head	1.7;
access;
symbols;
locks
	nobody:1.7; strict;
comment	@# @;


1.7
date	99.07.07.18.20.37;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.07.07.18.20.12;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.07.07.18.20.10;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.07.07.18.18.01;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.07.07.18.17.26;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.07.07.18.16.42;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.07.07.18.16.38;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.7
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 122
IDependOn-Set: 243
IDependOn-Set: 244
IDependOn-Set: 245
LastModifiedSecs: 931371611
Parent: 244
SequenceNumber: 2
Title: Using the Select element
Part: 0
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 931371479
Type: monospaced
Lines: 41
----------
From: "jon *" <jon@@clearink.com>
To: ECS <ecs@@list.working-dogs.com>
Subject: Re: Element
Date: Wed, Jul 7, 1999, 11:15 AM


> I am trying to create a Select( ) area and add some choices to it.  I am a
> little unclear on what determines something an element.  I believe it is an
> object with properties and methods, but I do not know how to create one with
> a name and a value that could be used in my select( ).

Select s = new Select().addElement ( new Option ( "Name", 1 ) );

That should create:

<select>
    <option value="1">Name
</select>

Say that you want to create a bunch of <option> elements, just put things
into a loop:

Select s = new Select();
int MAX = 5;
for ( int i=1;i<=MAX;i++ )
{
    s.addElement ( new Option ( "Name " + i, i ) );
}

<select>
    <option value="1">Name 1
    <option value="2">Name 2
    <option value="3">Name 3
    <option value="4">Name 4
    <option value="5">Name 5
</select>

I hope that helps,

-jon
EndPart: 0
@


1.6
log
@null
@
text
@d5 1
@


1.5
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 931371610
@


1.4
log
@null
@
text
@a2 1
IDependOn-Set: 178
d4 3
a6 2
LastModifiedSecs: 931371479
Parent: 122
@


1.3
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 931371445
d7 1
a7 1
SequenceNumber: 1
d9 48
@


1.2
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 931371398
d7 2
a8 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d3 1
@
