jQuery Autocomplete fetch_object fatal error?

I am consistently getting this error when I use the code supplied here, even after updating the database information etc.

http://www.roseindia.net/tutorial/ajax/jquery/autocomplete.html

"Fatal Error: Call to a member function fetch_object() on a non-object"

Now the code I am using is this, I added some slight variant to it as I wanted to go through two tables instead of one.

View Answers

June 19, 2012 at 5:24 PM

Here is an example of Jquery Autocomplete box.

<script>
    $(function() {
        var availableTags = [
            "ActionScript",
            "AppleScript",
            "Asp",
            "BASIC",
            "C",
            "C++",
            "Clojure",
            "COBOL",
            "ColdFusion",
            "Erlang",
            "Fortran",
            "Groovy",
            "Haskell",
            "Java",
            "JavaScript",
            "Lisp",
            "Perl",
            "PHP",
            "Python",
            "Ruby",
            "Scala",
            "Scheme"
        ];
        $( "#tags" ).autocomplete({
            source: availableTags
        });
    });
    </script>



<div class="demo">

<div class="ui-widget">
    <label for="tags">Tags: </label>
    <input id="tags">
</div>

</div><!-- End demo -->



<div style="display: none;" class="demo-description">

</div>









Related Tutorials/Questions & Answers:
Advertisements