Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" src="../../inc/bsn.AutoSuggest_2.1.3_comp.js"/></script>
- <script type="text/javascript">
- window.onload = init;
- function init() {
- var options = {
- script: "dyn.toolsGetLocation.php?fieldname=test&locationtype=station&",
- varname: "findlocation",
- json: true,
- delay: 100,
- timeout: 10000,
- maxresults: 10,
- callback: function (obj) { document.getElementById('testid').value = obj.id; }
- };
- var as = new bsn.AutoSuggest('idOfTextfield', options);
- }
- </script>
- <p>
- <label>test auto-suggest: </label>
- <input type="text" id="location_find" />
- </p>
Add Comment
Please, Sign In to add comment