Welcome Guest, Not a member yet? Register   Sign In
implementing an auto-complete in codeigniter help
#1

[eluser]DumpProgrammer[/eluser]
I am thinking of expanding my application by implementing an autocomplete field but the tutorials I have seen do not really help much on someone like me who has little knowledge of jquery or ajax. Anyways I have one I am found which is really easy to use but I am not sure on what to add on the datasource. The example goes to the file but I am using codeigniter to call a model. Here is a section where I am not sure what to put
Code:
// instantiate remote data source
        // code based on example at
        // http://developer.yahoo.com/yui/examples/autocomplete/ac_basic_xhr.html
        var oDS = new YAHOO.util.XHRDataSource("http://localhost/get_authors.php");
        oDS.responseType = YAHOO.util.XHRDataSource.TYPE_XML;
        oDS.responseSchema = {
           resultNode: 'author',
           fields: ['name']            
        };
        oDS.maxCacheEntries = 10;
What can I point to the data source to? Here is a link to the tutorialhere


Messages In This Thread
implementing an auto-complete in codeigniter help - by El Forum - 01-31-2010, 04:02 PM
implementing an auto-complete in codeigniter help - by El Forum - 01-31-2010, 04:23 PM
implementing an auto-complete in codeigniter help - by El Forum - 01-31-2010, 05:02 PM
implementing an auto-complete in codeigniter help - by El Forum - 02-01-2010, 02:39 AM
implementing an auto-complete in codeigniter help - by El Forum - 02-01-2010, 03:40 AM
implementing an auto-complete in codeigniter help - by El Forum - 02-01-2010, 04:50 AM
implementing an auto-complete in codeigniter help - by El Forum - 02-01-2010, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB