PHP RS multi selects versus Javascript Array selects

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
muppet
Forum Newbie
Posts: 22
Joined: Sun Jan 25, 2004 2:01 pm

PHP RS multi selects versus Javascript Array selects

Post 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 :-)
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post 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.
muppet
Forum Newbie
Posts: 22
Joined: Sun Jan 25, 2004 2:01 pm

Post by muppet »

Many thanx :-)
Post Reply