Alien-GvaScript

 view release on metacpan or  search on metacpan

test/functional/autoCompleter/ajax.html  view on Meta::CPAN

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <link href="/test.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="/images/GvaScript.css" rel="stylesheet" type="text/css" media="screen"/>
    <script src="../../../lib/Alien/GvaScript/lib/prototype.js"></script>
    <script src="../../../lib/Alien/GvaScript/lib/GvaScript.js"></script>

    <script>
      var ac, ac_strict, ac_noblank;
      var url = "http://localhost:8085/ac/country/";

      function setup() {  
        ac = new GvaScript.AutoCompleter(url, {
          minimumChars : 2,
          labelField   : 'value'
        });

        ac_notypeahead = new GvaScript.AutoCompleter(url, {
          minimumChars : 2,
          labelField   : 'value',
          typeAhead    : false
        });

        ac_strict = new GvaScript.AutoCompleter(url, {
          minimumChars : 2,
          labelField   : 'value',
          strict       : true
        });

        ac_noblank = new GvaScript.AutoCompleter(url, {
          minimumChars : 2,
          labelField   : 'value',
          strict       : true,
          blankOK      : false
        });

        ac_strict_nosuggest = new GvaScript.AutoCompleter(url, {
          minimumChars : 2,
          labelField   : 'value',
          strict       : true,
          autoSuggest  : false
        });

        ac_strict_notypeahead = new GvaScript.AutoCompleter(url, {
          minimumChars : 2,
          labelField   : 'value',
          strict       : true,
          autoSuggest  : true,
          typeAhead  : false
        });
      }

      document.observe('dom:loaded', setup);
    </script>

  </head>

  <body>

    <h1>Ajax Autocompleter</h1>

<p>
This autocompleter example is bound to a complete list of countries
served by the perl HTTP service at http://localhost:8085/ac/country/ that responds 



( run in 1.148 second using v1.01-cache-2.11-cpan-119454b85a5 )