LAX Official Site | Search Flights, Arrivals, Departures & Connections (2024)

Sorry!

Our flight schedule and real-time flight information provider is having technical difficulties. We apologize for the inconvenience. Please try later.


"); } }, { name: "City", title: "Destination", align: "center", type: "text", itemTemplate: function (val, item) { var formattedCity = ''; if (item.City == null) { return $("

") .append('Not Available'); } else { return $("

") .css("font-weight", "bold") .append(item.City); } }, }, { name: "Timestamp", title: "Sched. Departure", align: "center", type: "number", itemTemplate: function (val, item) { var $label = $("

").attr("id", "timeformat"); if (item.TimeWithFormat == null) { return $label.append('N/A'); } var timeFormat = moment(item.TimeWithFormat, 'MM/DD/YYYY hh:mm:ss a').format("DD MMM h:mm A"); //var dateFormat = moment(item.TimeWithFormat,'MM/DD/YYYY hh:mm:ss').format("DD MMM"); return $label.append(timeFormat).append("

"); } }, { name: "Remarks", title: "Status", align: "center", itemTemplate: function (val, item) { var delayed = 'delayed'; var cancelled = 'cancelled'; var firstPart,secondPart; if(val.indexOf(':') >=0){ var itemsArray = val.split(" ") firstPart = itemsArray[0]; secondPart= moment(itemsArray[1], 'hh:mm').format("h:mm A"); }else{ firstPart = val; secondPart=''; } if ((val.toLowerCase().indexOf(delayed) != -1) || (val.toLowerCase().indexOf(cancelled) != -1) ) { return $("

").attr("id", "divRemarks").attr('style', "color:red").append(firstPart).append(" ").append(secondPart).append("

"); } else { return $("

").attr("id", "divRemarks").attr('style', "color:green").append(firstPart).append(" ").append(secondPart).append("

"); } }, align: "center" }, ] }); var field = $("#sortingField").val(); $("#jsGrid").jsGrid("sort", "Flight"); $('#btnTextSearch').on('click', function (e) { GetSearchItems(); }); $('#imgClear').on('click', function (e) { ClearFilters(); }); $('#btnClearFilters').on('click', function (e) { ClearFilters(); }); $('#btnRefresh').on('click', function (e) { ClearFilters(); }); $('#ddlAirlines').on('change', function (e) { GetSearchItems(); }); var filter = new Object(); $('#ddlTerminal').on('change', function (e) { GetSearchItems(); }); $('#btnDeparture').on('click', function (e) { console.log("departure click"); var fn = ""; var txtSearchCode = $('#txtFlightnbr').val(); if (txtSearchCode != '') { fn = "&fn=" + txtSearchCode; } console.log("departures url:" + window.location.pathname + "?type=dep" + fn); window.location.href = window.location.pathname + "?type=dep" + fn; /*if (window.location.href.indexOf('?') > -1) { console.log("departur url:" + window.location.pathname + "?type=dep"); var fn = ""; var txtSearchCode = $('#txtFlightnbr').val(); if (txtSearchCode != '') { fn = "&fn=" + txtSearchCode; } window.location.href = window.location.href + "&type=dep" + fn; }*/ }); $('#btnArrival').on('click', function (e) { console.log("arrival click"); var fn = ""; var txtSearchCode = $('#txtFlightnbr').val(); if (txtSearchCode != '') { fn = "&fn=" + txtSearchCode; } console.log("arrival url:" + window.location.pathname + "?type=arr" + fn); window.location.href = window.location.pathname + "?type=arr" + fn; /*if (window.location.href.indexOf('?') > -1) { console.log("arrival url:" + window.location.pathname + "?type=arr"); var fn = ""; var txtSearchCode = $('#txtFlightnbr').val(); if (txtSearchCode != '') { fn = "&fn=" + txtSearchCode; } window.location.href = window.location.pathname + "?type=arr" + fn; }*/ }); $('#txtFlightDate').on('change', function (e) { if (window.location.href.indexOf('?') > -1) { var date = GetParameterValues('date'); var type = GetParameterValues('type'); if (date == '' || date == undefined) { window.location.href = window.location.href + "&date=" + $('#txtFlightDate').val(); } else { window.location.href = location.href.replace("date=" + date, "date=" + $('#txtFlightDate').val()); } } }); $('#txtFlightnbr').on('keypress', function (e) { if (e.keyCode == 13) { GetSearchItems(); } }); var selectedTerminal = getUrlParameter('terminal'); if (selectedTerminal != null || selectedTerminal != undefined || selectedTerminal != '') { selectedTerminal = selectedTerminal.toUpperCase().trim(); var selectedTerminalOptions = $('#ddlTerminal option').filter(function () { if (selectedTerminal.indexOf("TBIT") > -1 || selectedTerminal.indexOf("B") > -1) return this.value.toUpperCase().indexOf("TBIT") > -1; else return this.value.toUpperCase() === selectedTerminal || this.text.toUpperCase() === selectedTerminal; } ) if (selectedTerminalOptions != null || selectedTerminalOptions != undefined || selectedTerminalOptions != '') { selectedTerminalOptions.first().prop("selected", true); } else { console.log("Bad Terminal: " + selectedTerminal); } } var selectedAirline = getUrlParameter('airline'); if (selectedAirline != null || selectedAirline != undefined || selectedAirline != '') { selectedAirline = selectedAirline.toUpperCase().trim(); var selectedAirlineOptions = $('#ddlAirlines option').filter( function () { return this.value.toUpperCase() === selectedAirline || ( selectedAirline.length >= 3 && this.text.toUpperCase().startsWith(selectedAirline) === true ); } ) if (selectedAirlineOptions != null || selectedAirlineOptions != undefined || selectedAirlineOptions != '') { selectedAirlineOptions.first().prop("selected", true); } else { console.log("Bad Airline: " + selectedAirline); } } function getDateMMDDYYYY(fullDate) { var twoDigitMonth = ((fullDate.getMonth().toString().length) == 1) ? '0' + (fullDate.getMonth() + 1) : (fullDate.getMonth() + 1); var twoDigitDate = ((fullDate.getDate().toString().length) == 1) ? '0' + (fullDate.getDate()) : (fullDate.getDate()); date = twoDigitMonth + "/" + twoDigitDate + "/" + fullDate.getFullYear(); return date; } function GetParameterValues(param) { var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < url.length; i++) { var urlparam = url[i].split('='); if (urlparam[0] == param) { return urlparam[1]; } } } }); function ClearFilters() { window.location.href = window.location.pathname + "?type=dep"; } function GetSearchItems() { var objSearch = new Object(); var airlineCode = $('#ddlAirlines').val(); if (airlineCode != '') { objSearch.AirlineCode = airlineCode; } var txtSearchCode = $('#txtFlightnbr').val(); if (txtSearchCode != '') { objSearch.Flight = txtSearchCode.toUpperCase(); } var terminal = $('#ddlTerminal').val(); if (terminal != '') { objSearch.Terminal = terminal; } var li = $('ul.uldomestic li').filter(function () { return $(this).attr('class') === 'active'; }); var flightType = li.attr('val'); if("US" == flightType){ objSearch.IsDomestic = 'True'; } else if ("Non-US" == flightType){ objSearch.IsDomestic = 'False'; } else { objSearch.IsDomestic = ''; } $("#jsGrid").jsGrid("loadData",objSearch ).done(function () { $('#divReload').show(); $('#preloader').hide(); }); $("#jsGrid").jsGrid("openPage", 1); } $(window).bind("load", function () { $('#divReload').hide(); $.get('/Flight/SearchResult',{'reqType':'dep','date':''}).done(function(responseText){ db = responseText; $('#apiurl').val(responseText[0].APIGeneratedurl); $("#flightDataBetwenDateTime").html("Data Between: " + responseText[0].TimeWithFormat + " - " + responseText[responseText.length - 1].TimeWithFormat); $("#lastUpdatedTime").html("Data Last Updated: " + responseText[0].FlightDataCreatedDt); $('#datasource').html("Datasource: " + responseText[0].FlightDataSource); GetSearchItems(); }) .fail(function (xhr, status, error) { console.log(xhr.responseText); $('#alertpopup').modal('show'); $('#preloader').hide(); }); }); function getUrlParameter(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^]*)"), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); }

LAX Official Site | Search Flights, Arrivals, Departures & Connections (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6130

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.