Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.