Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically populate a drop down menu

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I have no idea how to do this so I thought this would be a good place to ask. I want to dynamically populate a dropdown menu based on the value of another dropdown menu without reloading the page. An example of this can be found at When you select a state then the metro box populates with the corasponding cities. How do I do this same thing???
 
looks like they write a client side array from the server.

ie response.write &quot;<script language=javascript> var wcv_TypStMtoAry = new Array(new Array(&quot;3&quot;,&quot;Alabama&quot;,new Array(new Array(&quot;68&quot;,&quot;Birmingham&quot;),new Array(&quot;193&quot;,&quot;Huntsville&quot;),new Array(&quot;216&quot;,&quot;Montgomery&quot;),new Array .... &quot;

and then have client code that reads the array and loads the city combo using wcf_pvStateList function.(right click view source :) )

I have done that way but in vbscript only.

hth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top