Brad,

I really appreciate the post on pop-up menu. I have studied and modified for an application I have. It works great.

Listing Type: Business OpportunitiesCommercialCondos, TownhousesRuralSingle Family ResidentialWaterfront
Listing Class: Apartments

I do have one problem I can't figure out. How would I have it assign "SELECTED" to the proper category if this is used in a "modify record" taf?

I made the following changes, but it isn't working properly:

function reFillList(){
 var selValue;
 var nOption;
 selValue=calform.C_ID.value;
 //alert("Selected value=" +selValue);
 // clear the actual list by setting its length to 0
 calform.C2_ID.length=0
 for (var i=0; i < C2_ID.length;i++){
        //fill the box with the values corresponding to
        //the category in the first box
        if (C2_ID[i].category==selValue) {
                nOption=calform.C2_ID.length;
                calform.C2_ID.options[nOption]=new Option(C2_ID[i].description,C2_ID[i].nvalue);
                if (Option(C2_ID[i].nvalue)==<@COLUMN "Listings.C2_ID">) {
                        calform.C2_ID.options[i].selected=true;
                }
        }
 }
// calform.C2_ID.options[0].selected=true;
}

It omits the first category and the second one is a blank dropdown list.

Listing Type:
Listing Class:

Do you have an idea on what I screwed up?
 
Also just wanted to ask if the function checkvalues is used anywhere? I don't see it.
 
Thanks in advance
 
Steve Fogelson
Internet Commerce Solutions
 
 

-----Original Message-----
From: Brad Robertson [
mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 08, 2002 10:56 PM
To: Multiple recipients of list witango-talk
Subject: Re: Witango-Talk: Array => Pop Up Menu


Here is a script that creates you can easily modify to poplulate from search
results or hard code.

Reply via email to