home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / dyndns.xml < prev    next >
Text File  |  2003-03-29  |  3KB  |  81 lines

  1. <search function="dyndns">
  2.   <name>Dyndns beta</name>
  3.   <category>Computers</category>
  4.   <contributor>MLL</contributor>
  5.   <link>http://beta.dyndns.org/</link>
  6.   <email></email>
  7.   <description>
  8.     <div class="helpboxDescLabels">Switches:</div>
  9.     <table class="helpboxDescTable">
  10.       <tr><td>/password</td><td> - </td><td></td></tr>
  11.     </table>
  12.     <div class="helpboxDescLabels">Examples:</div>
  13.     <table class="helpboxDescTable">
  14.       <tr><td></td></tr>
  15.       <tr><td></td></tr>
  16.     </table>
  17.   </description>
  18.   <form name="dyndnsf"
  19.         method="post"
  20.         action="https://beta.dyndns.org/index.html">
  21.     <input type="hidden" name="__login" value="1" />
  22.     <input type="hidden" name="username" value="mll02" />
  23.  
  24.     <input type="hidden" name="password" value="" />
  25.   </form>
  26.   <script><![CDATA[
  27.     function dyndns(q)
  28.     {
  29.       if( nullArgs("dyndns", q) )
  30.         return;
  31.  
  32.       // Parse switches with parseArgs:
  33.  
  34.       // parseArgs usage:
  35.       // Arguments:
  36.       //    q                - string from the search function
  37.       //    expectedSwitches - list or array of the expected switch values
  38.       //    expandSwitches   - optional parameter [default = true] used to determine 
  39.       //                       if the switch shortcuts should be expanded (i.e. /f becomes /foo)
  40.       // Returns an object with these properties:
  41.       //    q        - the input string with the switches removed
  42.       //    switches - array of objects with these two properties:
  43.       //                  name:   expanded name of the matched switch (i.e. foo as in /foo:bar)
  44.       //                  value:  value of switch (i.e. bar as in /foo:bar)
  45.       //    switch_val - associative array with the switch name as the key with the switch value 
  46.       //                 as the value. (i.e. switch_val["foo"] = "bar" as in /foo:bar)
  47.  
  48.       var args = parseArgs(q, "password");
  49.       //for (var iSwitch = 0; iSwitch < args.switches.length; iSwitch++)
  50.       //{
  51.       //  switch( args.switches[iSwitch].name )
  52.       //  {
  53.       //    case "username":
  54.       //      break;
  55.       //    case "password":
  56.       //      break;
  57.       //    default:
  58.       //      break;
  59.       //  }
  60.       //}
  61.  
  62.       // FORM variables for dyndnsf
  63.       //document.dyndnsf.__login.value = "";
  64.       document.dyndnsf.username.value = args.q;
  65.  
  66.       document.dyndnsf.password.value = args.switch_val["password"];
  67.  
  68.       submitForm(dyndnsf);
  69.     }
  70.   ]]></script>
  71.   <copyright>
  72.     The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
  73.     Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  74.   </copyright>
  75.   <created_by>
  76.     This search file was initially created on 02/18/03 at 15:15:13
  77.     by Dave's Quick Search Deskbar Search Wizard version 1.0.1 ,
  78.     Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
  79.   </created_by>
  80. </search>
  81.