Linking select boxes
Posted: Tue Aug 08, 2006 2:05 pm
Ya I posted on this earlier but now I am doing more of a theory thing.
I want to link: states -> counties -> cities -> city areas
But I want to make it that ALL area loaded originally (save the users who arn't using JS). Is that even reasonable? Thats like close to, min 8 million 'city areas' to be loaded if you don't run JS. Not even mentioning the cities and the rest. Is there another way to do this?
Also, if they have JS running, how should I load all of this? Dynamically is just stupid so I was thinking of doing a static JS page that would be edited if I added more cities or whatever, but even this seams drastic. That file is going to be huge and I would load it every time, sounds aweful.
So either way I hit a brick wall. I want to be able to cover the entire USA with everything but even when I think of western PA it gets extream real fast, let alone the rest of the country.
How can I do this efficiently?
On a side note:
If anyone wants to help write a free php function that will dynamically create linking select boxes I am happy for the help. Right now I want to make this function/class but my JS knowledge is limited but my ideas are not.
I want to link: states -> counties -> cities -> city areas
But I want to make it that ALL area loaded originally (save the users who arn't using JS). Is that even reasonable? Thats like close to, min 8 million 'city areas' to be loaded if you don't run JS. Not even mentioning the cities and the rest. Is there another way to do this?
Also, if they have JS running, how should I load all of this? Dynamically is just stupid so I was thinking of doing a static JS page that would be edited if I added more cities or whatever, but even this seams drastic. That file is going to be huge and I would load it every time, sounds aweful.
So either way I hit a brick wall. I want to be able to cover the entire USA with everything but even when I think of western PA it gets extream real fast, let alone the rest of the country.
How can I do this efficiently?
On a side note:
If anyone wants to help write a free php function that will dynamically create linking select boxes I am happy for the help. Right now I want to make this function/class but my JS knowledge is limited but my ideas are not.