Jump to content

chain selection for drop down menu


franknu

Recommended Posts

Ok, I have a java script that has a drop down menu where a person select a state and then all the cities

for that state show up right next to it.

 

my problem is that the script it is making the webpage runing slow, or sometimes is telling me that the insternet explorer is running slow because of it and i was wondering if there is a better way to do this with PHP and where should i start

 

 

Link to comment
https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/
Share on other sites

know it is a simple java script but i had work with java on the pass on it is really unstable, u never know what you are getting. This seems to be diffrent files i actually downloaded out the Internet and made the changes..

 

but basiclly i am looking to get rip of it now, maybe i though there was a better way to do this

How many State/City combinations do you have? If it is a relatively small number then there's probably a problem in your javascript. I'd suggest using just javascript and fixing the code. If you have a very large number of options then AJAX would definitely be the way to go.

 

So, how many states are in your list and what is the average number of cities per state?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.