[thelist] DropDown boxes

Nick Wilson nick at explodingnet.com
Fri Mar 1 10:20:01 CST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


* and then Paul Backhouse declared....
> So if they pick England, then all Counties in England would be displayed in
> the second drop down box.
>
> Hence if the select say Suffolk from the Counties drop down box then the
> last drop down bpx would only show towns in Suffolk.
>
> All 3 dropdown boxes are on the same page.
> I'm using ASP to do this.
> Or javascript.


Well I don't know much JS and no ASP but you should probably be looking
at creating several arrays and conditionally and dynamically creating
your pulldowns based on the choices. like:

if(user chooses UK) {
    counties=uk_counties
    create dropdown using array of uk_counties
} else if(user chooses france) {
    le counties=fr_counties
    create dropdown using array of le counties
}

Maybe that will get you off on the right foot, ps, I think ASP would be
harder than JS here as you don't want to submit the form three times to
change the dropdowns, you want to onclick the jobbie.

- --
- -----------------------------------------------------------
 www.explodingnet.com   |    Projects, Forums and
                        +    Articles for website owners
- -- Nick Wilson --     |    and designers.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8f6qpHpvrrTa6L5oRArBEAKCsmKzGHtvFoKIVfzEmmykdOj2aSQCcDRHZ
pidgpFM+Im9po/OqpqTzefc=
=m9pz
-----END PGP SIGNATURE-----



More information about the thelist mailing list