I'm sorry I thought it was best to tell where to find the error...

On my page I include 'jquery-1.3.2.min.js', and the
'jquery.autocomplete.js' file.

I also include a file (search.autocomplete.php) that has list of words
to autocomplete which looks like this
"var autogemeenten = [ { text :'\'s-Hertogenbosch', url :'\'s-
Hertogenbosch.html'}, { text :'Aa en Hunze', url :'Aa en
Hunze.html'} ] ;"

I'm using the following code to execute the auto complete and
automatically redirect to the selected page.


<script type="text/javascript">
$().ready(function()
{
        $("#list-gemeente").autocomplete(autogemeenten,
        {
                matchContains: true,
                minChars: 2,

                formatItem: function(item)
                {
                        return item.text;
                }
        })
        .result(function(event, item)
        {
                location.href = item.url;
        });

});
</script>

thanks again for your help

Reply via email to