473,581 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
co_pais_envio_c hk=co_pais_envi o
window.location .href="checkout _direccion.asp"
End Sub%>

<%rs_pais.MoveF irst%>

<select name="cbo_pais_ env" class="form1" id="cbo_pais_en v"
onchange=<%call refresh%>">

<option value="0" size="25">Selec cione</option>

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

<option size="25" <%If CInt(co_pais_en vio) =
CInt(rs_pais("i d_pais")) Then %selected <%End If%>
value="<%=rs_pa is("id_pais") & "-" & rs_pais("co_zon a_dhl_ve") & "-" &
rs_pais("co_zon a_mrw_ve")%>">< %=UCase(rs_pais ("no_pais")) %></option>

<%end if
rs_pais.MoveNex t
rs_pais.movefir st

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

<option <%If CInt(co_pais_en vio) = CInt(rs_pais("i d_pais")) Then
%selected <%End If%value="<%=rs _pais("id_pais" ) & "-" &
rs_pais("co_zon a_fedex") & "-" &
rs_pais("co_zon a_dhl_exp")%>"> <%=UCase(rs_pai s("no_pais"))%> </option>

<%end if
rs_pais.MoveNex t
Set rs_pais = Nothing

Sep 1 '06 #1
0 1612

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Paul Eghbal | last post by:
Hi all, I'm trying to use the following script: <script language="javaScript"> function setrepto(){ document.aForm.repno.value = document.aForm.rep.options.value; } </script>
by: Noah | last post by:
I have seen this technique on a couple websites, but haven't been clear on how it's done. What I am looking for is to have a form with x-options. The technique is that when the first option is selected it auto updates the other options to correspond. For example if I was looking for specific cities in a state. Once a state is selected I am...
by: chaos | last post by:
Hello, i have problems using sqlj in the following environment. I use type 4 driver com.ibm.db2.jcc.DB2Driver and connect succesful to 8.1. db2-Database(DRDA)(Informational tokens are "DB2 v8.1.0.32", "s031027", "MI00060", and FixPak "4".Product is installed at "/opt/IBM/db2/V8.1"). It runs in an applicationcontainer (jdk1.4, linux). I...
by: Paul Duncan | last post by:
diggityduncs (Programmer) Nov 13, 2003 Hello, I'm tring to use a win32/api dll in c# The vendor I received the dll from doesn't know anything about .net I received two files ACGAPI.DLL +
by: jerry.ranch | last post by:
I have a series of comboboxes on a form that are used to display forms in DS view (theres a qry behind it all). This is working well for me. Some people like to see the data in DS view, some in normal form view. I know they have the option to change that, but I trying to make this as user friendly as possible (and to learn about VBA for...
by: Mirovk | last post by:
I am trying to take actions using onchange with an option list without success. 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 populated)
by: Daz | last post by:
Hi everyone. Firstly, I apologise if this i not what you would call a PHP problem. I get quite confused as to what lives in which realm, so if this shouldn't be posted here, please suggest where I should post it. I have created a form, which consists of a list of items, each with a checkbox. When a checkbox is checked or unchecked, the...
by: Brett R. Wesoloski | last post by:
I am having problems using HttpContext.Current.Request.Url.Host. I have some code that does this... if (HttpContext.Current != null) { subdomain = HttpContext.Current.Request.Url.Host; }
by: PerumalSamy | last post by:
Hi I need to export datagrid to excel. below is the coding what i had tried Dim stringwrite As New StringWriter Response.Clear() Response.AddHeader("content-disposition", "attachment;filename=test.xls") Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.Charset = ""
by: Sreed | last post by:
Hi, I need to have my user send the file path to the webserver. For this i'm trying to use input file type so that user can select the file. Please note that I don't want do uploading the file. I just need the location of some file. So user should be able to do that using browse option. I know that due to some security reasons in browsers, full...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.