Hello all,
I worked through some of the entries in the tracker tonight and fixed
the flightview search. If you have httpinst installed you can update
with:
httpinst /u fv
Otherwise, you can replace it with the attached file and reload (!).
This version adds two additional syntaxes to the search, and fixes the
original search as well. And adds a little more documentation.
Syntax:
fv [airport]
fv [airline] [flight number]
fv [airport] [airport] [time]
Examples:
fv aa 2035
fv sx 341
fv jfk
fv slc
fv jfk slc m
fv jfk slc night
fv jfk den 16
Regards,
Shawn K. Hall
http://12PointDesign.com/
'// ========================================================
"You have to change the map, not the world."
-- Marcus Kaarto
<search function="fv">
<name>flightview.com</name>
<category>Travel</category>
<contributor>Allen B. MacKenzie (modified by Kim Gräsman and Shawn K. Hall)</contributor>
<link>http://www.flightview.com/</link>
<email>[EMAIL PROTECTED]</email>
<description>
Obtain real-time info on commercial flights. Type the two letter airline code followed by the flight number. Airline codes can be obtained from the drop down box on <a href="http://www.flightview.com">www.flightview.com</a>.
<br/><br/>
Even though flightview has airline codes for airlines throughout the world,
I believe they only track flights in U.S. and Canadian airspace. Also, the
flight you enter must be "active" - usually this seems to mean from an hour
or two before takeoff until an hour or two after landing.
<br/><br/>
Airline and Airport codes can be entered in upper or lower case.
<div class="helpboxDescLabels">Some common US Airline codes:</div>
<table class="helpboxDescTable">
<tr><td>AA - American Airlines</td></tr>
<tr><td>CO - Continental Airlines</td></tr>
<tr><td>DL - Delta Airlines</td></tr>
<tr><td>B6 - Jet Blue</td></tr>
<tr><td>NW - Northwest Airlines</td></tr>
<tr><td>WN - Southwest Airlines</td></tr>
<tr><td>SX - Skybus Airlines</td></tr>
<tr><td>US - US Airways</td></tr>
<tr><td>UA - United Airlines</td></tr>
</table>
<div class="helpboxDescLabels">Common Airports (examples only):</div>
<table class="helpboxDescTable">
<tr><td>DEN - Denver</td></tr>
<tr><td>JFK - John F Kennedy</td></tr>
<tr><td>SMF - Sacramento Metro</td></tr>
<tr><td>SLC - Salt Lake City</td></tr>
</table>
<div class="helpboxDescLabels">Syntax:</div>
<table class="helpboxDescTable">
<tr><td>fv [airport]</td></tr>
<tr><td>fv [airline] [flight number]</td></tr>
<tr><td>fv [airport] [airport] [time]</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>fv aa 2035</td></tr>
<tr><td>fv sx 341</td></tr>
<tr><td>fv jfk</td></tr>
<tr><td>fv slc</td></tr>
<tr><td>fv jfk slc m</td></tr>
<tr><td>fv jfk slc night</td></tr>
<tr><td>fv jfk den 16</td></tr>
</table>
</description>
<form name="fvaf" method="get"
action="http://www.flightview.com/TravelTools/ViewAirport.asp">
<input type="hidden" name="airport" value="" title="airport code: AAA" />
</form>
<form name="fvf" method="post"
action="http://www.flightview.com/TravelTools/FlightTrackerQueryResults.asp">
<input type="hidden" name="qtype" value="sfi" />
<input type="hidden" name="sfw" value="/FV/Home/Main" />
<input type="hidden" name="whenArrDep" value="dep" />
<input type="hidden" name="selAl" value="" />
<input type="hidden" name="al" value="" />
<input type="hidden" name="fn" value="" />
<input type="hidden" name="whenDate" value="Today" />
<input type="hidden" name="x" value="1" />
<input type="hidden" name="y" value="1" />
</form>
<form name="fvcf" method="post"
action="http://www.flightview.com/TravelTools/FlightTrackerQueryResults.asp">
<input type="hidden" name="qtype" value="cpi" />
<input type="hidden" name="sfw" value="/FV/Home/Main" />
<input type="hidden" name="selDepap" value="" />
<input type="hidden" name="depap" value="" />
<input type="hidden" name="selArrap" value="" />
<input type="hidden" name="arrap" value="" />
<input type="hidden" name="whenArrDep" value="arr" />
<input type="hidden" name="whenHour" value="" />
<input type="hidden" name="whenDate" value="Today" />
<input type="hidden" name="x" value="1" />
<input type="hidden" name="y" value="1" />
</form>
<script><![CDATA[
function fv(q){
if( nullArgs("fv", q) )
return false;
fvaction = 0;
var d = new Date();
var dd = d.getFullYear() + "" + (d.getMonth()+1) + "" + d.getDate();
vars = q.split(" ");
if (vars.length == 1){ // airport details
document.fvaf.airport.value = vars[0].toUpperCase();
fvaction = 1;
submitForm(fvaf);
}
if (vars.length == 2){ // flight details by airline and number
document.fvf.selAl.value = vars[0].toUpperCase();
document.fvf.al.value = vars[0].toUpperCase();
document.fvf.fn.value = vars[1];
document.fvf.whenArrDep.value = "dep";
document.fvf.whenDate.value = dd;
fvaction = 1;
submitForm(fvf);
}
if(vars.length == 3){ // airport to airport with time
document.fvcf.selDepap.value = vars[0].toUpperCase();
document.fvcf.depap.value = vars[0].toUpperCase();
document.fvcf.selArrap.value = vars[1].toUpperCase();
document.fvcf.arrap.value = vars[1].toUpperCase();
document.fvcf.whenDate.value = dd;
vars[2] = vars[2].toLowerCase();
switch(vars[2]){
case "m": document.fvcf.whenHour.value = "morning"; break;
case "morning": document.fvcf.whenHour.value = "morning"; break;
case "n": document.fvcf.whenHour.value = "noonish"; break;
case "noonish": document.fvcf.whenHour.value = "noonish"; break;
case "a": document.fvcf.whenHour.value = "afternoon"; break;
case "afternoon": document.fvcf.whenHour.value = "afternoon"; break;
case "e": document.fvcf.whenHour.value = "night"; break;
case "evening": document.fvcf.whenHour.value = "night"; break;
case "night": document.fvcf.whenHour.value = "night"; break;
default: document.fvcf.whenHour.value = vars[2]; break;
}
fvaction = 1;
submitForm(fvcf);
}
if(fvaction == 0){
nullArgs("fv","?");
}
}
]]></script>
<copyright>
The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
DQSD-Users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?forum_id=8601