patchido Posted February 22, 2013 Share Posted February 22, 2013 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, Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/ Share on other sites More sharing options...
Jessica Posted February 22, 2013 Share Posted February 22, 2013 Ajax! Google Chained Selects + Ajax. Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1414261 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? Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1414269 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 Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1414271 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). Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1414294 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! Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1414297 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. Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1414310 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? Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1415141 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. Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1415142 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 Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1415143 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. Link to comment https://forums.phpfreaks.com/topic/274834-advanced-select-form/#findComment-1415215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.