patchido Posted February 22, 2013 Share Posted February 22, 2013 (edited) im not sure if i should post it in php or html. but here it goes. im trying to do an application with dropdown selection options where one selector depends on the last, two levels this way. the options are in a mysql datbase so by using php im retrieving the array for each selector, but how can i make the selectors change live depending on which option you choose without refreshing the page? do i need something else? like javascript or something like that? i know nothing about JS Thanks for taking your time reading this, Edited February 22, 2013 by patchido Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 22, 2013 Share Posted February 22, 2013 Ajax! Google Chained Selects + Ajax. Quote Link to comment Share on other sites More sharing options...
patchido Posted February 22, 2013 Author Share Posted February 22, 2013 damn, i don't even know what ajax is, is it a complement of JS? Quote Link to comment Share on other sites More sharing options...
patchido Posted February 22, 2013 Author Share Posted February 22, 2013 is it difficult?? maybe i could get a template and just populate it with my information? its 3 chained selects what i need Quote Link to comment Share on other sites More sharing options...
denno020 Posted February 22, 2013 Share Posted February 22, 2013 Ajax is quite simple. It stands for Asychronus Javascript and XML. If you want to go the exceptionally easy route, you can use jQuery. Otherwise you could look up tutorials on YouTube on how to do pure javascript AJAX (which isn't harder than jQuery, it's just got longer variable names, so it looks harder). Quote Link to comment Share on other sites More sharing options...
patchido Posted February 22, 2013 Author Share Posted February 22, 2013 maybe this helps finding the best way for me to make it, what if i want to add more lines of selectables, something like this, when u open the first page you will see this. /////////////////// /////////////////// ////////////////// choose type - choose food - choose size ////////////////// /////////////////// ////////////////// and there is a dropdown menu to add more lines. so if i add 2 lines ill have. /////////////////// /////////////////// ////////////////// choose type - choose food - choose size ////////////////// /////////////////// ////////////////// /////////////////// /////////////////// ////////////////// choose type - choose food - choose size ////////////////// /////////////////// ////////////////// /////////////////// /////////////////// ////////////////// choose type - choose food - choose size ////////////////// /////////////////// ////////////////// thanks! Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 23, 2013 Share Posted February 23, 2013 That is also something you would do with Javascript. Look into using jQuery. Quote Link to comment Share on other sites More sharing options...
patchido Posted February 26, 2013 Author Share Posted February 26, 2013 AJAX vs Jquery? which one is easier for someone who hasn't code any JS? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 26, 2013 Share Posted February 26, 2013 jQuery is a javascript library. It makes it easy to do AJAX. Quote Link to comment Share on other sites More sharing options...
patchido Posted February 26, 2013 Author Share Posted February 26, 2013 ohh i see, ill look for some tuts on jquery then, any advice on any specific tuts? thanks Quote Link to comment Share on other sites More sharing options...
Love2c0de Posted February 26, 2013 Share Posted February 26, 2013 I found this series very useful: http://blog.themeforest.net/screencasts/jquery-for-absolute-beginners-video-series/ Regards, L2c. Quote Link to comment 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.