Moderators mark1million Posted February 10, 2011 Moderators Report Posted February 10, 2011 I would like to use javascript to update my selection menus, i know its possible but im having trouble finding any code, basically what i want to do is if a pilot selects a departure then the destination drop down is populated from the database of available flights from the departure icao. Pointers welcome Quote
Moderators mark1million Posted February 10, 2011 Author Moderators Report Posted February 10, 2011 So i have found exactly what i need just need a bit of guidance in implementing it. http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/ http://remysharp.com/wp-content/uploads/2007/01/select.html Quote
Moderators mark1million Posted February 10, 2011 Author Moderators Report Posted February 10, 2011 I think i have talked myself in to a new schedules search based on this http://www.w3schools.com/PHP/php_ajax_database.asp Must be mad Quote
Administrators Nabeel Posted February 10, 2011 Administrators Report Posted February 10, 2011 You'd have to create a new module Use AJAX to call action.php/module/airportlist/KJFK class module extends codonmodule { public function airportlist($airport) { } } Then you'd select based on $airport (KJFK) passed in Use the API to search... output your list from that Quote
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.