CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 listbox

Print topic Send  topic

Author Message
Fernando Campos
Posted: 01/21/2003, 5:55 AM

I have two listboxes in my page, one of them with the States of my Country. This listbox has an onChange JavaScript event that reloads the page and pass the stateID as parameter to the another listbox to select it’s cities.

I have two problems: The state’s listbox doesn’t keep the state shoosed after the onChange event.

The other problem occurs when I’m updating one registry: The registry’s link pass the stateID as parameter to select the correct state’s cities. The code returns the correct state, but it doesn’t return the city, keeping “Select Value” at the listbox.

I’m using ASP and SQL Server 2000.

Can somebody help me?

Thank you.
kipdole
Posted: 01/21/2003, 6:13 PM

I have been trying to figure this out myself as well.

I could get Jaro's List boxes to work for a search form but not a record form.

It would be great to have this working!!! I would love a working sample in asp.
Thanks,
Kip
AARL
Posted: 01/22/2003, 4:17 AM

You can do this by using the search form you already have working and a record form, pass the value[s] to hidden fields in the record form.....use one search form for each level of list box....

OR

On one form [RECORD], you need to set the values store the values befor the OnChange....there is a great example here:

http://msdn.microsoft.com/library/default.asp?url=/libr...ml/calendar.asp

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.