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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't select last entry in my combo box

Status
Not open for further replies.

MikeL91

Programmer
Feb 8, 2001
100
US
Has anyone experinced this before, and what can I change to fix it. the form submits from a javascript function using onchange, and the combo is populated from a table.


thanks,
-Mike
 
Hi Mike,

well, can you see if the combo is correctly populated?

if it is, then the problem is with the code refered to onchange.

if the combo is not complete, then the problem is all about populating it.

can you give as some code 'bout populating and onchange event?

Good work ===================
* Marta Oliveira *
===================
marta100@aeiou.pt
-------------------
CPC_TA- Braga
-------------------
Portugal
===================
 
This is what I have:

<% 'If Request.Form(&quot;myGroup&quot;) <> &quot;&quot; Then %>
<form name=&quot;form2&quot; method=&quot;post&quot; action=&quot;&quot;>
<select name=&quot;myCity&quot; onChange=&quot;this.form.submit();&quot;>
<option selected>Select City...</option>
<%
While (NOT rsCitys.EOF)
%>
<option value=&quot;<%=(rsCitys.Fields.Item(&quot;City&quot;).Value)%>&quot; <%if (CStr(rsCitys.Fields.Item(&quot;City&quot;).Value) = CStr(rsCitys.Fields.Item(&quot;City&quot;).Value)) then Response.Write(&quot;SELECTED&quot;) : Response.Write(&quot;&quot;)%>><%=(rsCitys.Fields.Item(&quot;City&quot;).Value)%></option>
<%
rsCitys.MoveNext()
Wend
If (rsCitys.CursorType > 0) Then
rsCitys.MoveFirst
Else
rsCitys.Requery
End If
%>
</select>
<input type=&quot;hidden&quot; name=&quot;myGroup&quot; value=&quot;<%Request.Form(&quot;myGroup&quot;)%>&quot;>
<input type=&quot;hidden&quot; name=&quot;step&quot; value=&quot;3&quot;>
</form>
<% 'End If %>


I used ultradev for some of it.

thanks so much.

-Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top