topical media & game development

talk show tell print

professional-ajax-07-Autosuggest-Example-AutoSuggestExample.htm / htm

          <title>Autosuggest Example</title>
          <script type="text/javascript" src="json.js"></script>
          <script type="text/javascript" src="zxml.js"></script>
          <script type="text/javascript" src="autosuggest.js"></script>
          <link rel="stylesheet" type="text/css" href="autosuggest.css" />        
          <script type="text/javascript">
              window.onload = function () {
                  var oTextbox = new AutoSuggestControl(document.getElementById("txtState"), new SuggestionProvider());        
          <form method="post" onsubmit="alert('Submitted!')">
              <table border="0">
                      <td><input type="text" name="txtName" id="txtName" /></td>
                      <td>Address 1:</td>
                      <td><input type="text" name="txtAddress1" id="txtAddress1" /></td>
                      <td>Address 2:</td>
                      <td><input type="text" name="txtAddress2" id="txtAddress2" /></td>
                      <td><input type="text" name="txtCity" id="txtCity" /></td>
                      <td><input type="text" name="txtState" id="txtState" autocomplete="off" /></td>
                      <td>Zip Code:</td>
                      <td><input type="text" name="txtZip" id="txtZip" /></td>
                      <td><input type="text" name="txtCountry" id=" txtCountry" /></td>
              <input type="submit" value="Save Information" />

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.