home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / ebay.xml < prev    next >
Text File  |  2003-01-19  |  4KB  |  83 lines

  1. <search function="ebay">
  2.   <name>eBay</name>
  3.   <description>
  4.     Search eBay by description or by item number.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/about</td><td> - </td><td>View username's About Me page</td></tr>
  8.       <tr><td>/all</td><td> - </td><td>Search auctions by username including completed</td></tr>
  9.       <tr><td>/feedback</td><td> - </td><td>Display feedback on an ebay user</td></tr>
  10.       <tr><td>/items</td><td> - </td><td>Search items by username</td></tr>
  11.       <tr><td>/my</td><td> - </td><td>Open MyEbay page</td></tr>
  12.       <tr><td>/user</td><td> - </td><td>Search current auctions by username</td></tr>
  13.     </table>
  14.     <div class="helpboxDescLabels">Examples:</div>
  15.     <table class="helpboxDescTable">
  16.       <tr><td>ebay guitars</td></tr>
  17.       <tr><td>ebay 1503826268</td></tr>
  18.       <tr><td>ebay /ab music-brokers</td></tr>
  19.       <tr><td>ebay /all mickey</td></tr>
  20.       <tr><td>ebay /f mickey</td></tr>
  21.       <tr><td>ebay /i music-brokers</td></tr>
  22.       <tr><td>ebay /my</td></tr>
  23.       <tr><td>ebay /u mickey</td></tr>
  24.       </table>
  25.   </description>
  26.   <category>Shopping</category>
  27.   <link>http://www.ebay.com/</link>
  28.   <contributor>Ryan Edwards, Darrick, Brent Beardsley</contributor>
  29.   
  30.   <form name="ebayf"
  31.         action="http://search.ebay.com/search/search.dll"
  32.         method="get">
  33.     <input type="hidden" name="MfcISAPICommand" value="GetResult"/>
  34.     <input type="hidden" name="ht" value="1"/>
  35.     <input type="hidden" name="SortProperty" value="MetaEndSort"/>
  36.     <input type="hidden" name="query"/>
  37.   </form>
  38.   
  39.   <script><![CDATA[
  40.     function ebay(q)
  41.     {
  42.       if( nullArgs("ebay",q) )
  43.         return false;
  44.  
  45.       var args = parseArgs(q, "all, about, feedback, items, my, user");
  46.  
  47.       if (args.switches.length > 0) {
  48.         switch (args.switches[0].name)
  49.         {
  50.         case "about": openSearchWindow('http://members.ebay.com/aboutme/' + args.q +'/'); return false;
  51.         case "all": openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?' +
  52.                                      'MfcISAPICommand=ViewBidItems&userid=' + args.q +
  53.                                      '&completed=1&sort=3&all=1&rows=25'); return false;
  54.         case "feedback": openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewFeedback&userid=' + args.q); return false;
  55.         case "items": openSearchWindow('http://cgi.ebay.com/ws/eBayISAPI.dll?ViewSellersOtherItems&userid=' + args.q + 
  56.                                        '&include=0&since=-1&sort=3&rows=25'); return false;
  57.         case "my": openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?MyEbayLogin'); return false;
  58.         case "user": openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?' +
  59.                                       'MfcISAPICommand=ViewBidItems&userid=' + args.q +
  60.                                       '&completed=0&sort=3&all=1&rows=25'); return false;
  61.         }
  62.       }
  63.  
  64.       var res = null;
  65.       if ( res = args.q.match( /^\s*(\d{9,})\s*$/ ) )
  66.       {
  67.         openSearchWindow('http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?MfcISAPICommand=ViewItem&item=' + res[1]);
  68.       }
  69.       else
  70.       {
  71.         document.ebayf.query.value = args.q;
  72.         submitForm(ebayf);
  73.       }
  74.     }
  75.   ]]></script>
  76.  
  77.   <copyright>
  78.     Copyright (c) 2002 David Bau
  79.     Distributed under the terms of the
  80.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  81.   </copyright>
  82. </search>
  83.