Welcome Guest, Not a member yet? Register   Sign In
Help with Ajax Autocomplete
#1

[eluser]josebalius[/eluser]
Hey guys, I am fairly new to this library and I was wondering if I could get some assistance on my problem.

Here is the controller:

Code:
class Home extends Controller {

    var $data;
    
    function Home() {
    
        parent::Controller();
        
        // Load custom lib
        $this->load->library ( "ajax" );
        
        // Load db
        $this->load->database();
        
    }

    function get_list() {
        echo "<ul><li>Test</li></ul>";
    }

And here is are two parts of the view (a lot of html that I don't wanna post)

Code:
ALL HTML CODE here
                &lt;?php
                echo $this->ajax->text_field_with_auto_complete('test', array('size' => 20), array('url' => '/home/get_list'));
                ?&gt;

Problem is that when I try it, it doesn't show anything at all, now if I change /home/get_list to "get_list" by itself (invalid URL) then it does work but with a 404 Error of course, so I was wondering why when I provide the correct url it doesn't show anything?

Im I showing my HTML results incorrectly?

Thanks

Jose


Messages In This Thread
Help with Ajax Autocomplete - by El Forum - 02-03-2008, 02:43 PM
Help with Ajax Autocomplete - by El Forum - 02-03-2008, 02:46 PM
Help with Ajax Autocomplete - by El Forum - 02-03-2008, 02:51 PM
Help with Ajax Autocomplete - by El Forum - 02-03-2008, 03:07 PM
Help with Ajax Autocomplete - by El Forum - 02-03-2008, 03:10 PM
Help with Ajax Autocomplete - by El Forum - 02-03-2008, 07:31 PM
Help with Ajax Autocomplete - by El Forum - 02-04-2008, 06:25 AM
Help with Ajax Autocomplete - by El Forum - 02-04-2008, 06:55 AM
Help with Ajax Autocomplete - by El Forum - 02-04-2008, 04:56 PM
Help with Ajax Autocomplete - by El Forum - 02-04-2008, 08:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB