Jump to content

Recommended Posts

  • Moderators
Posted

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 ;)

  • Administrators
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...