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

  1. <search function="fandango">
  2.   <name>Fandango</name>
  3.   <description>
  4.     Find movie information, listings, and buy tickets online.<br/>
  5.     <div class="helpboxDescLabels">Usage:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>Movie Info</td><td> - </td><td>fandango <<i>movie</i>></td></tr>
  8.       <tr><td>Local Listings</td><td> - </td><td>fandango /location {<<i>zipcode</i>> | <<i>city</i>> }</td></tr>
  9.     </table>
  10.     <div class="helpboxDescLabels">Example:</div>
  11.     <table class="helpboxDescTable">
  12.       <tr><td>fandango harry potter</td></tr>
  13.       <tr><td>fandango /location San Diego</td></tr>
  14.     </table>
  15.   </description>
  16.   <category>Entertainment</category>
  17.   <link>http://www.fandango.com/</link>
  18.   <contributor>Nikolai Devereaux</contributor>
  19.   <idea>Nikolai Devereaux</idea>
  20.   <form name="fandangof"
  21.         action="http://www.fandango.com/my_box_office.asp"
  22.         method="get">
  23.     <input type="hidden" name="txtMovieTitle" />
  24.     <input type="hidden" name="txtCityZip" />
  25.   </form>
  26.  
  27.   <script><![CDATA[
  28.     function fandango(q)
  29.     {
  30.       var args = parseArgs(q, "location");
  31.       if( nullArgs("fandango",q) )
  32.         return false;
  33.       if( args.switches.length == 1 && args.switches[0].name == "location" )
  34.       {
  35.         document.fandangof.txtCityZip.value = args.q;
  36.         submitForm(fandangof);
  37.       }
  38.       else if( args.switches.length > 1 )
  39.       {
  40.         nullArgs("fandango","?");
  41.       }
  42.       else
  43.       {
  44.         document.fandangof.txtMovieTitle.value = args.q;
  45.         submitForm(fandangof);
  46.       }
  47.     }
  48.   ]]></script>
  49.  
  50.   <copyright>
  51.     Copyright (c) 2002 David Bau
  52.     Distributed under the terms of the
  53.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  54.   </copyright>
  55. </search>