Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-18-2003, 09:01 AM   #1
Registered User
Join Date: Apr 2003
Posts: 1
Default XML - Dynamic Combo Boxes

Howdy. Just looking for some advice on a problem, or a better way to do things.

I have 3 combo boxes for a description of a car. So Make, Model, Year. Then, i use the same combo boxes to show the car description according to the VIN number you have entered. Also, the Model combo box needs to be dynamic even more so, by reloading new model data depending on what make of car you choose in the Make Combo box.

I have created a working model, somewhat, but i think its messy. I do not have the code here, but i was looking for the best solution to this problem. So far im using XML, but i might not be using it in the best format.

I use an XML object calling a server script for each combo box, except Year. Thats hard coded. So, I have an XML object for Make, XML object for Model, and a XML Object for VIN. Now, the part that really starts getting sticky is the setChangeHandlers for Make. Because, every time you enter, or renter a VIN number it triggers the Handler on Make and then triggers the handler on Model. Each combo box also needs to show which model and make and year the car is for the VIN. So it needs to sift through the list and setSelectedIndex() to whatever it needs.

I hope this is enough info for some advice. If not, sorry about that.

Thanks everyone,

Plankton is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:18 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.