franknu Posted June 1, 2007 Share Posted June 1, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/ Share on other sites More sharing options...
MadTechie Posted June 1, 2007 Share Posted June 1, 2007 You using AJAX ? try moving scripts to header, reduce scrite size.... we really need to see something first! Quote Link to comment https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/#findComment-266480 Share on other sites More sharing options...
franknu Posted June 1, 2007 Author Share Posted June 1, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/#findComment-266484 Share on other sites More sharing options...
MadTechie Posted June 1, 2007 Share Posted June 1, 2007 try looking into AJAX, their some great examples of drop downs http://www.phpfreaks.com/forums/index.php/topic,115581.0.html Quote Link to comment https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/#findComment-266491 Share on other sites More sharing options...
Psycho Posted June 1, 2007 Share Posted June 1, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/#findComment-266496 Share on other sites More sharing options...
franknu Posted June 1, 2007 Author Share Posted June 1, 2007 yes, basicly i have all the state and each state should have the city in USA Quote Link to comment https://forums.phpfreaks.com/topic/53897-chain-selection-for-drop-down-menu/#findComment-266587 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.