home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / pgrab.xml < prev    next >
Text File  |  2002-10-30  |  3KB  |  94 lines

  1. <search function="pgrab">
  2.   <name>PriceGrabber</name>
  3.   <category>Shopping</category>
  4.   <contributor>Andrew D. Myers</contributor>
  5.   <link>http://www.pricegrabber.com/</link>
  6.   <email>myers@pobox.com</email>
  7.   <description>
  8.   Price searches, product info, vendor ratings & reviews. 
  9.     <div class="helpboxDescLabels">Switches:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr><td>/computers</td><td> - </td><td>Computers & parts</td></tr>
  12.       <tr><td>/software</td><td> - </td><td>Software</td></tr>
  13.       <tr><td>/electronics</td><td> - </td><td>Consumer Electronics</td></tr>
  14.       <tr><td>/videogames</td><td> - </td><td>Video Games</td></tr>
  15.       <tr><td>/movies</td><td> - </td><td>Movies</td></tr>
  16.       <tr><td>/music</td><td> - </td><td>Music</td></tr>
  17.       <tr><td>/books</td><td> - </td><td>Books</td></tr>
  18.       <tr><td>/toys</td><td> - </td><td>Toys</td></tr>
  19.       <tr><td>/office</td><td> - </td><td>Office Products</td></tr>
  20.     </table>
  21.     <div class="helpboxDescLabels">Examples:</div>
  22.     <table class="helpboxDescTable">
  23.       <tr><td>pgrab GeForce4 4400</td></tr>
  24.       <tr><td>pgrab Lord of the Rings /books</td></tr>
  25.     </table>
  26.   </description>
  27.   <form name="pgrabf"
  28.         method="get"
  29.         action="http://www.pricegrabber.com/search_gen.php/">
  30.     <input type="hidden" name="topcat_id" value="" />
  31.     <input type="hidden" name="topcat_search" value="1" />
  32.     <input type="hidden" name="form_keyword" value="" />
  33.     <input type="hidden" name="ut" value="" />
  34.   </form>
  35.   <script><![CDATA[
  36.     function pgrab(q)
  37.     {
  38.       if( nullArgs("pgrab", q) )
  39.         return;
  40.  
  41.       var args = parseArgs(q, "computers, software, electronics, videogames, movies, music, books, toys, office");
  42.       if ( args.switches.length > 0 )
  43.       {
  44.         switch( args.switches[0].name )
  45.         {
  46.           case "computers":
  47.             document.pgrabf.topcat_id.value = "1";
  48.             break;
  49.           case "software":
  50.             document.pgrabf.topcat_id.value = "9";
  51.             break;
  52.           case "electronics":
  53.             document.pgrabf.topcat_id.value = "2";
  54.             break;
  55.           case "videogames":
  56.             document.pgrabf.topcat_id.value = "3";
  57.             break;
  58.           case "movies":
  59.             document.pgrabf.topcat_id.value = "4";
  60.             break;
  61.           case "music":
  62.             document.pgrabf.topcat_id.value = "6";
  63.             break;
  64.           case "books":
  65.             document.pgrabf.topcat_id.value = "10";
  66.             break;
  67.           case "toys":
  68.             document.pgrabf.topcat_id.value = "12";
  69.             break;
  70.           case "office":
  71.             document.pgrabf.topcat_id.value = "13";
  72.             break;
  73.           default:
  74.             document.pgrabf.topcat_id.value = "";
  75.             break;
  76.         }
  77.       }
  78.  
  79.       document.pgrabf.form_keyword.value = args.q;
  80.       document.pgrabf.ut.value = "";
  81.  
  82.       submitForm(pgrabf);
  83.     }
  84.   ]]></script>
  85.   <copyright>
  86.     Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  87.   </copyright>
  88.   <created_by>
  89.     This search file was initially created on 09/25/02 at 01:55:13
  90.     by Dave's Quick Search Deskbar Search Wizard version 0.9.1 (beta),
  91.     Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
  92.   </created_by>
  93. </search>
  94.