Page 1 of 1

PHP RS multi selects versus Javascript Array selects

Posted: Mon Feb 02, 2004 11:29 am
by muppet
Can any one help please?
I have implemented a single page with a form holding 3 dynamic selects pulling data from mysql, ie second select populated from users choice on first select - third select populated from users choice on second select. The data is contries - regions - towns/cities.

It works very well but is SOOOOO slow to load the page, so I thought about using javascript and holding the data in arrays in the hope that it will load considerably quicker. Before i try and write this can anyone tell me if it will be any quicker with javascript? Any advice appreciated.

Thanks :-)

Posted: Mon Feb 02, 2004 4:21 pm
by Unipus
Well, the page won't have to reload, so yes it should be quicker. The trouble is that then you've created a client side application. Pluses and minuses.

For a good example of exactly what you're asking about, check out http://www.37signals.com/better/fedex/after.html

And while you're at it, check out everything else 37signals do. smart kids they are.

Posted: Mon Feb 02, 2004 4:31 pm
by muppet
Many thanx :-)