FrontpageSchedules

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

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

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

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