OK, I've got this query that I'm dumping into a WDDX package, serializing it
to JS, and then I can populate this form based on a combo box change.

Here's the issue ... on of the form elements that needs to change is another
combo box.

I was able to get a new value written to the combo box, but it doesn't come
up as the SELECTED value ... you have to use the pull down to see it ...
I've also tried something like the below, but while it works for populating
the combo box once, it doesn't update if a new company is selected.  What am
I missing here ...

Here's some code I'm working with ...

I have this function somebody else wrote to populate a select box:

function AddToOptionList(OptionList, OptionValue, OptionText) {
   // Add option to the bottom of the list
   OptionList[OptionList.length] = new Option(OptionText, OptionValue);
}


Then this function populates all of my form fields on a change:

function updateForm() {
        with (document.form1) {
                var RowNum = merchSelect.selectedIndex-1;


This section below specificly deals with "status" combo box I need to update
... 

AddToOptionList(STATUS, obMerch.status[RowNum], obMerch.status[RowNum]);
AddToOptionList(STATUS, "Active", "Active");
AddToOptionList(STATUS, "InActive", "InActive");



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Owens
Internet Operations Coordinator
InsideVC.com/Ventura County Star
[EMAIL PROTECTED]
AIM: GoCatGo1956
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to