yandoo Posted February 2, 2008 Share Posted February 2, 2008 Hi there, Im just wondering which approch to take. Im building a form that is has 2 list/menu's. The first is dislpays options from a queried table in db and the second matches the records(another query) from the first list/menu with the second. So far i have managed to do this by having the form updated over 2 stages, after bit of looking around i hear it can be done with ajax? Can it be done javascript alone (integrating with the queries to db)?? Which way is better, Updating over 2 stages or using ajax? or javascript alone (if it can be done?) Thank You Link to comment https://forums.phpfreaks.com/topic/88994-solved-best-approachpractice-for-listmenu-ajaxupdate/ Share on other sites More sharing options...
phpQuestioner Posted February 2, 2008 Share Posted February 2, 2008 The only way to have database interaction with your javascript is to use ajax; unless you use php to post your database query for your first select menu; back to your second select menu. Link to comment https://forums.phpfreaks.com/topic/88994-solved-best-approachpractice-for-listmenu-ajaxupdate/#findComment-455767 Share on other sites More sharing options...
yandoo Posted February 2, 2008 Author Share Posted February 2, 2008 Hi, But which is best approch would you say?? Thanks Link to comment https://forums.phpfreaks.com/topic/88994-solved-best-approachpractice-for-listmenu-ajaxupdate/#findComment-455776 Share on other sites More sharing options...
phpQuestioner Posted February 2, 2008 Share Posted February 2, 2008 I would go with AJAX; that way, you page does not have to reload each time you query your database. Link to comment https://forums.phpfreaks.com/topic/88994-solved-best-approachpractice-for-listmenu-ajaxupdate/#findComment-455777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.