Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #12473

Re: How can I create multi level drop down box

From hon123456 <peterhon321@yahoo.com.hk>
Newsgroups comp.lang.javascript
Subject Re: How can I create multi level drop down box
Date 2012-03-07 04:46 -0800
Organization http://groups.google.com
Message-ID <31960729.21.1331124377704.JavaMail.geo-discussion-forums@pbcjk1> (permalink)
References <6ac0052d-44e8-4abe-8f56-18361c3c69aa@9g2000pbn.googlegroups.com> <4f574a09$0$6972$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


Tom de Neef於 2012年3月7日星期三UTC+8下午7時44分07秒寫道:
> "hon123456" 
>  schreef in bericht 
> news:6ac0052d-44e8-4abe-8f56-18361c3c69aa@9g2000pbn.googlegroups.com...
> > Dear all,
> >      I want to create 4 level drop downlist box in my page. When user
> > select a value in drop down list box, then a second drop down list box
> > will be shown out with content populated from database based on the
> > value of first drop down list box, and when user select a value in
> > second drop down box, then the third drop down list box will be shown
> > from database based on the value of second drop down list box,then
> > same to the fourth drop down list box. I will hardcode the first
> > selection box as follows:
> > <selection name="Company:>
> > <option value="company1">company1</option>
> > <option value="company2">company1</option>
> > <option value="company3">company1</option>
> > </selection>
> >
> > At the begining, there is only one drop down list box in the webpage,
> > after user select the company, then the second will be shown and then
> > third..
> 
> Will the user need to click in the first three lists or is a mouse-over 
> sufficient to show the next level?
> In JavaScript: create a table element, populate it with tr and td elements 
> to which you add a text element with data from the database. Position the 
> table (absolute) next to the cell that called it up. Attach to each element 
> the appropriate event (click or mouseover). Etc. I guess there will be 
> libraries to do the bulk of the work for you.
> Tom

Thanks for your Help. Tom. What I want is a Selection drop down box and there will be only one switch box at start. Then the user need to click the selection 
box to prompt next selection box. I have tried to search the Internet, but I cannot find out any useful library to do it. I guess it is because English is my second language. So would you mind to give me some keywords to search the Internet. Thanks.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How can I create multi level drop down box hon123456 <peterhon321@yahoo.com.hk> - 2012-03-07 01:25 -0800
  Re: How can I create multi level drop down box "Tom de Neef" <tdeneef@qolor.nl> - 2012-03-07 12:44 +0100
    Re: How can I create multi level drop down box hon123456 <peterhon321@yahoo.com.hk> - 2012-03-07 04:46 -0800
  Re: How can I create multi level drop down box Scott Sauyet <scott.sauyet@gmail.com> - 2012-03-07 04:57 -0800
  Re: How can I create multi level drop down box SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-03-07 14:15 +0100

csiph-web