Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: not implemented

Status
Not open for further replies.

caseye

IS-IT--Management
Feb 7, 2002
52
US
I am trying toi create a series of dynamic select boxes but when i try to add a record the options array i get "ERROR: not implemented" Here is the code any ideas

<form name=&quot;reportbuilder&quot; method=&quot;post&quot; action=&quot;&quot;>
function SelStateAdd(state)
{
SelStates = state.split(&quot;,&quot;);
document.reportbuilder.SelStates.options(1) = new Option(&quot;state&quot;, &quot;value &quot; + state)
}

<select name=&quot;UnSelState&quot; size=&quot;5&quot; onChange=SelStateAdd(this.value)>
<option value=&quot;AL,1&quot;>Alabama</option>
<option value=&quot;AK,2&quot;>Alaska</option>
<option value=&quot;AZ,3&quot;>Arizona</option>
<option value=&quot;AR,4&quot;>Arkansas</option>
<option value=&quot;CA,5&quot;>California</option>
</select>

<select name=&quot;SelStates&quot; size=&quot;5&quot;>
<option>None</option>
</select>

</form>
 
try changing
Code:
document.reportbuilder.SelStates.options(1) = new Option(&quot;state&quot;, &quot;value &quot; + state)
to
Code:
document.reportbuilder.SelStates.options[1] = new Option(&quot;state&quot;, &quot;value &quot; + state)
if you want only one to be displayed in SelStates and change it to
Code:
document.reportbuilder.SelStates.options[document.reportbuilder.SelStates.options.length] = new Option(&quot;state&quot;, &quot;value &quot; + state)
it you want all that you pick in the first to be displayed in SelStates
 
that did it cannot believe i over looked that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top