CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Listbox filtering

Print topic Send  topic

Author Message
Dave Johnson
Posted: 07/31/2003, 1:47 PM

Hi all,
Just wondering what method one can use to have two listboxes on a form with one of the list boxes being filtered by the value chosen in the first listbox. For example, if you have a vehicle make listbox (Ford, Honda, etc) and a vehicle make listbox (Explorer, Civic, etc) and you want the models to be only for the selected makes - then how can one do that? How can one submit a form and not have it update/delete/add/cancel??? Thanks.

Cheers,
Dave
mkmind
Posted: 08/01/2003, 10:25 PM

Hello.
You must go to the html Section in CCS to your first Listbox. Then put this also in the select.
onchange="javascript:location.href ='Your_Side.php?Your_vehicle_Field_id='+this.value;"

So looks complete:

<select class="CobaltSelect" name="{Your_vehicle_Field}" onchange="javascript:location.href ='Your_Side.php?Your_vehicle_Field_id='+this.value;">

So you have the id from the first Listbox in the url and you can handle it for the where class in the second Listbox.

Sorry about my english and i hope it helps

By martin

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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