As promised -
A new search for the "Travel" category. This one searches for the lowest
published airfare between two cities using Expedia. If your origin and
destination are single words, like airport codes, then you can simply
seperate them with a space. For instance "expd ITH SEA" will search for
airfare from Ithaca, NY to Seattle/Tacoma, WA.
If you are using city names (which may contain spaces) as the search terms,
though, then you use a semicolon to seperate your names. So, you would type
"expd new york; san francisco". Obviously "expd new york san francisco"
won't work...
A similar Travelocity search is coming soon, after which I expect to enhance
both the Expedia and Travelocity searches to allow for more options.
I have also attached a new version of the flightview search which corrects a
stupid error in the code. (I used an = instead of an ==.)
Enjoy!
Allen
---
Allen B. MacKenzie
[EMAIL PROTECTED]
http://www.mackenab.com/
<search function="expd">
<name>expedia.com</name>
<description>
Find the lowest roundtrip fares published by the airlines and when they are available.
<br/><br/>
The easiest way to use this search is if you already know the airport codes for the airports from which you are traveling. In that case simply type "expd ORG DES" where ORG and DES are the airport codes of your origin and destination, respectively. If you wish to search for cities by name, seperate the cities with a semicolon; searching by city will often return several airport choices for each city. You can also use the semicolon if you know one airport code but not the other.
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>expd ith sea</td></tr>
<tr><td>expd new york; london</td></tr>
<tr><td>expd lhr; berlin</td></tr>
</table>
</description>
<category>Travel</category>
<link>http://www.expedia.com/</link>
<contributor>Allen B. MacKenzie</contributor>
<form name="expdf"
action="http://www.expedia.com/pub/agent.dll"
method="post">
<input type="hidden" name="qscr" value="fpfl" />
<input type="hidden" name="flag" value="q" />
<input type="hidden" name="subm" value="" />
<input type="hidden" name="wsds" value="" />
<input type="hidden" name="trpt" value="2" />
<input type="hidden" name="frwd" value="0" />
<input type="hidden" name="pcit1" value="" />
<input type="hidden" name="city1" id="edCity1" value="" />
<input type="hidden" name="airp1" value="" />
<input type="hidden" name="pctd1" value="" />
<input type="hidden" name="citd1" id="edCitd1" value="" />
<input type="hidden" name="dair1" value="" />
</form>
<script><![CDATA[
function expd(q)
{
if( nullArgs("expd", q) )
return false;
vars_semi = q.split(";")
if (vars_semi.length == 2)
{
document.expdf.city1.value = vars_semi[0];
document.expdf.citd1.value = vars_semi[1];
submitForm(expdf);
} else if (vars_semi.length = 1)
{
vars_space = q.split(" ")
if (vars_space.length == 2) {
document.expdf.city1.value = vars_space[0];
document.expdf.citd1.value = vars_space[1];
submitForm(expdf);
} else {
nullArgs("expd","?");
}
} else {
nullArgs("expd","?");
}
}
]]></script>
</search>
<search function="fv">
<name>flightview.com</name>
<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 codes can be entered in upper or lower case. Some common US Airline
codes:
<br/><br/>
AA - American Airlines<br/>
CO - Continental Airlines<br/>
DL - Delta Airlines<br/>
B6 - Jet Blue<br/>
NW - Northwest Airlines<br/>
WN - Southwest Airlines<br/>
US - US Airways<br/>
UA - United Airlines<br/>
<br/>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>fv aa 2035</td></tr>
<tr><td>fv us 5323</td></tr>
</table>
</description>
<category>Travel</category>
<link>http://www.flightview.com/</link>
<contributor>Allen B. MacKenzie</contributor>
<form name="fvf"
action="http://www.flightview.com/fvFlightView/FlightViewCGI.exe"
method="get">
<input type="hidden" name="qtype" value="htm"/>
<input type="hidden" name="AL"/>
<input type="hidden" name="acid"/>
<input type="hidden" name="Find1" value="Find flight"/>
</form>
<script><![CDATA[
function fv(q)
{
if( nullArgs("fv", q) )
return false;
if( q == "" )
openSearchWindow("http://www.flightview.com/");
else
{
vars = q.split(" ")
if (vars.length == 2)
{
document.fvf.AL.value = vars[0].toUpperCase();
document.fvf.acid.value= vars[1];
submitForm(fvf);
}
else
nullArgs("fv","?");
}
}
]]></script>
</search>