jQuery Autocomplete fetch_object fatal error?

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:
jQuery Autocomplete fetch_object fatal error?
errore
Advertisements
jQuery autocomplete with jsonp
jQuery autocomplete
jQuery UI Widget : Autocomplete
is it possible to add a button inside an autocomplete jquery ui plugin?
select value from autocomplete textbox using jquery in jsp from database.
select value from autocomplete textbox using jquery in jsp from database.
Selecting value from autocomplete textbox using jquery in jsp
Selecting a radio button in jquery autocomplete from database value
mysql_fetch_object and mysql_fetch_array.
PDO Fetch Object
What is the difference between mysql_fetch_object and mysql_fetch_array?
autocomplete
java find the error1
java find the error4
java find the error7
java find the error3
java find the error2
errors
java find the error5
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
JQuery
JQuery
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
JQuery
Jquery
jquery
JQuery
jQuery
jquery
JQuery
JQuery
Autocomplete demo
Autocomplete demo
Autocomplete demo not working
check for errors
Need urgent help with C++ errors!
Autocomplete demo not working
jQuery - jQuery Tutorials and examples
What is the errors?
errors
java find the error6
JQuery-Disabling element in JQuery.
ModuleNotFoundError: No module named 'autocomplete'
ModuleNotFoundError: No module named 'autocomplete'
ModuleNotFoundError: No module named 'autocomplete'
ModuleNotFoundError: No module named 'autocomplete'
compilation errors
Embedded error: FATAL: no pg_hba.conf entry for host - JDBC

Ads