CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 simple AJAX auto-complete in search box

Print topic Send  topic

Author Message
zmoerf

Posts: 12
Posted: 09/13/2007, 9:36 AM

Download ajax auto complite here (http://brandspankingnew.net/download.php?file=autosuggest_v2.zip) and include 2 file in header example :

<script src="../library/ajaxautojs/bsn.AutoSuggest_c_2.0.js" type="text/javascript"></script>
<link media="screen" href="../library/ajaxauto/css/autosuggest_inquisitor.css" type="text/css" charset="utf-8" rel="stylesheet">

<input maxlength="10" id="testinput_xml" size="30" value="{no_saluran}" name="{no_saluran_Name}"> /// add id=testinput_xml in text box


put this script in fother :
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<script type="text/javascript">
var options = {
script:"../library/ajaxauto/test.php?json=true&", //<----- this create xml query database
varname:"input",
json:true,
callback: function (obj) { document.getElementById('testid').value = obj.id; }
};
var as_json = new AutoSuggest('testinput', options);


var options_xml = {
script:"../library/ajaxauto/test.php?", //<----- this create xml query database
varname:"input"
};
var as_xml = new AutoSuggest('testinput_xml', options_xml);
</script>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.