|
I think, for the benefit of your user and to avoid speed/memory related problems, that you should choose your second option.
It is indeed possible to have 3 dropdowns, and to change the content of no 2 once no 1 has been selected.
You just need some javascript for that.
|
|
Expert:
|
jgivoni
|
|
Date:
|
May 12, 2006
|
|
Time:
|
17:39
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
David,
2000 entries in ANY list is too much from a usability standpoint. Splitting them out to three dropdown lists would be a more manageable solution for your users.
Depending on the technology you're using for your development, there is more than one way to accomplish this.
1) Ajax - Once a user makes a selection from the "Country" dropdown list, a call is made to fetch the items needed to build the "Region" list. Once the selection of "Region" is made, another call will fetch the items for the "City" list.
2) .NET - The flow will be essentially the same as described above, with the new information added when the user does the postback.
The biggest advantage for a user with the Ajax solution, is not having to actually "see" the round-trips to the server.
|
|
Expert:
|
rcastagna
|
|
Date:
|
Jun 30, 2006
|
|
Time:
|
14:42
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
rcastagna,
3) All the info can be loaded in the first request and the just changed dynamically without further calls to the server.
|
|
Expert:
|
jgivoni
|
|
Date:
|
Jun 30, 2006
|
|
Time:
|
14:57
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
ok, yes, you can send them down in the first request...maybe the better question to ask is would you want to?
Sending all the options down would result in upwards of 90% useless data being shoved down the pipe.
Also, if you decided to add more countries/regions/cities you would have to make those edits to every page that presented these options. Storing them in an XML file or a database would make maintenance much, much easier.
I'm not saying that any solution is 100% ideal, but there are some ways that are better than others.
|
|
Expert:
|
rcastagna
|
|
Date:
|
Jun 30, 2006
|
|
Time:
|
15:26
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
Thanks a lot for your advice.
I think I'd go for the ajax solution as rcastagna proposed.
|
|
Expert:
|
david
|
|
Date:
|
Jun 30, 2006
|
|
Time:
|
17:36
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
rcastagna,
No need to edit every page manually if you wanna change the options. It can still be dynamically created from an XML file. This is besides the point.
Even though 90% of data could be unnecessary it is still possible that this solution is quicker, gives less load on server and a smoother experience for the user that AJAX. 90% of a couple of KB is still just a couple of KB...
But personally I would probably prefer AJAX too. Just because it's cool ;-)
|
|
Expert:
|
jgivoni
|
|
Date:
|
Jun 30, 2006
|
|
Time:
|
17:46
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
I guess it comes down to testing the options and seeing if the ajax solution is fast enough, or seeing if the page with all data is too slow.
|
|
Expert:
|
david
|
|
Date:
|
Jun 30, 2006
|
|
Time:
|
17:53
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
|
|
|
|
This question has been answered, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.
|
|