I have expanded the dhl search to work for the uk, see attached. As well
as the if to check for the switch it uses
<input type="hidden" name="type" value="fasttrack" />
which is not necessary for the usa search...that shouldn't break the us
search right?
the uk search can be tested with
dhl /uk:340433884500398185
Cheers, Tom.
<search function="dhl">
<name>Track DHL Packages</name>
<category>Shipping</category>
<contributor>David Bau, Tom Corcoran</contributor>
<link>http://www.dhl-usa.com/tracking</link>
<email>[EMAIL PROTECTED]</email>
<description>
Track DHL packages by Airwaybill numbers (up to 10)
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr>
<td>dhl [tracking #1] [tracking #2]</td>
<td>dhl /uk:tracking #1</td>
</tr>
</table>
</description>
<form name="dhlf"
method="get"
action="http://www.dhl-usa.com/cgi-bin/tracking.pl">
<input type="hidden" name="AWB" value="" />
<input type="hidden" name="LAN" value="ENG" />
<input type="hidden" name="TID" value="US_ENG" />
<input type="hidden" name="FIRST_DB" value="US" />
<input type="hidden" name="type" value="fasttrack" />
</form>
<script><![CDATA[
function dhl(q)
{
if( nullArgs("dhl", q) )
return;
var args = parseArgs(q, "uk");
if( (args.switches.length > 0) && (args.switches[0].name = "uk") )
{
document.dhlf.action = "http://www.dhl.co.uk/publish/gb/en/eshipping/international_air.high.html"
document.dhlf.AWB.value = args.switches[0].value.replace(/\s+/g,"\r\n");
}
else
document.dhlf.AWB.value = q.replace(/\s+/g,"\r\n");
submitForm(dhlf);
}
]]></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>
<created_by>
This search file was initially created on 09/19/02 at 07:02:40
by Dave's Quick Search Deskbar Search Wizard version 0.7 (beta),
Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
</created_by>
</search>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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