It looks like they're trying to make it harder to do this type of thing...
Anyway, their search form winds up forwarding on to a different server - it
switches the request from a post to a get (which is nice) and from asp to
idq.
End result - brook changed to castle. :)
Here it is - I can't post to sf through the firewall, so someone else will
have to do it.
Enjoy,
Greg
> The PriceWatch search doesn't work for me. It always tries to go to
> http://brook.pricewatch.com/search/search.asp?...
>
> I am wondering if the "brook" part of it is some click through stuff.
> The source on the PriceWatch site looks like this.
> <FORM METHOD="post" ACTION="/s/search.asp" name="tt" TARGET="Results">.
>
> Should pw.xml be rewritten to go to the main site and (more
> importantly) to work?
>
> JB
>
> John W. Bairen, Jr.
> www.bairen.net
<search function="pw">
<name>Price Watch</name>
<description>
Street price search for computer related items.<br/>
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td>/motherboard</td><td> - </td><td>Motherboards</td></tr>
<tr><td>/cpu</td><td> - </td><td>CPU / Processors</td></tr>
<tr><td>/ram</td><td> - </td><td>Memory</td></tr>
<tr><td>/video</td><td> - </td><td>Video Cards</td></tr>
<tr><td>/sound</td><td> - </td><td>Sound Cards</td></tr>
<tr><td>/hd</td><td> - </td><td>Hard Drives</td></tr>
<tr><td>/cd</td><td> - </td><td>CD-ROM Drives</td></tr>
<tr><td>/cdrw</td><td> - </td><td>CD Burners</td></tr>
<tr><td>/dvd</td><td> - </td><td>DVD-ROM Drives</td></tr>
<tr><td>/fd</td><td> - </td><td>Floppy Drives</td></tr>
<tr><td>/monitor</td><td> - </td><td>Monitors</td></tr>
<tr><td>/case</td><td> - </td><td>Cases</td></tr>
<tr><td>/psu</td><td> - </td><td>Power Supplies</td></tr>
<tr><td>/barebones</td><td> - </td><td>PC Bare Bones Kits</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>pw Athlon XP 1900 /cpu</td></tr>
</table>
</description>
<category>Shopping</category>
<link>http://www.pricewatch.com/</link>
<contributor>Rick Olson, Greg Mitchell</contributor>
<script><![CDATA[
function pw(q)
{
var args = parseArgs(q, "mb, motherboard, cpu, ram, hd, cd, video, sound, cdrw, dvd, fd, monitor, case, psu, bb, barebones");
if( nullArgs("pw",q) )
return false;
else if( args.switches.length == 1 )
{
switch( args.switches[0].name )
{
case "mb":
case "motherboard": pw_q = "Motherboards"; break;
case "cpu": pw_q = "Microprocessors"; break;
case "ram": pw_q = "System Memory"; break;
case "hd": pw_q = "Hard Disk Drives "; break;
case "cd": pw_q = "CD-ROM Drives"; break;
case "video": pw_q = "Video Cards"; break;
case "sound": pw_q = "Sound Cards"; break;
case "cdrw": pw_q = "CD Recorders"; break;
case "dvd": pw_q = "DVD Drives"; break;
case "fd": pw_q = "Floppy Drives"; break;
case "monitor": pw_q = "Monitors"; break;
case "case": pw_q = "Cases"; break;
case "psu": pw_q = "Power Supply for Case"; break;
case "bb":
case "barebones": pw_q = "Computer Systems - Kits Bare Bones"; break;
}
openSearchWindow("http://castle.pricewatch.com/search/searchmc.idq?qc="+escape(args.q)+"&c="+escape(pw_q)+"&m=&cr="+escape(args.q) );
}
else
openSearchWindow("http://castle.pricewatch.com/search/search.idq?cr="+escape(args.q)+"&qc="+escape(args.q.toUpperCase())+"&c=&m=&cr="+escape(args.q) );
}
]]></script>
</search>