472,129 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,129 software developers and data experts.

Problems Using onchange with option lists

I am trying to take actions using onchange with an option list without

I am not able to fully populate the list without a bad bad behavior
(the list is not getting populated)

What I am looking for, is being able to call a sub procedure each time
a new item in the list is selected (of course after it has been

Below some of the code:

<%Sub Refresh
End Sub%>


<select name="cbo_pais_env" class="form1" id="cbo_pais_env"
onchange=<%call refresh%>">

<option value="0" size="25">Seleccione</option>

<%Do While Not rs_pais.EOF%>
<%if cint(rs_pais("id_pais")) 1000 then%>

<option size="25" <%If CInt(co_pais_envio) =
CInt(rs_pais("id_pais")) Then %selected <%End If%>
value="<%=rs_pais("id_pais") & "-" & rs_pais("co_zona_dhl_ve") & "-" &
rs_pais("co_zona_mrw_ve")%>"><%=UCase(rs_pais("no_ pais"))%></option>

<%end if

Do While Not rs_pais.EOF%>
<%if cint(rs_pais("id_pais")) < 1000 then%>

<option <%If CInt(co_pais_envio) = CInt(rs_pais("id_pais")) Then
%selected <%End If%value="<%=rs_pais("id_pais") & "-" &
rs_pais("co_zona_fedex") & "-" &
rs_pais("co_zona_dhl_exp")%>"><%=UCase(rs_pais("no _pais"))%></option>

<%end if
Set rs_pais = Nothing

Sep 1 '06 #1
0 1543

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Noah | last post: by
2 posts views Thread by Paul Duncan | last post: by
6 posts views Thread by Daz | last post: by
3 posts views Thread by Brett R. Wesoloski | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.