?
avatar ronniee
ronniee
12 Jan 2015

Hi,

I have enabled Smart Search in Joomla 3.3.6 following this tutorial https://docs.joomla.org/Smart_Search_quickstart_guide. But, auto-suggestion does not show up. In browser console, there are errors TypeError: Class is not a constructor in autocompleter.js

I have checked media\com_finder\js\autocompleter.js, it seems autocompleter.js is not changed at all while indexer.js is changed completely in joomla latest release. You can check the error here http://taxibookingpro.com.

I don't know what I am doing wrong, please help.

Thanks in advance

avatar ronniee ronniee - open - 12 Jan 2015
avatar brianteeman brianteeman - change - 14 Jan 2015
Labels Added: ?
avatar chrisdavenport
chrisdavenport - comment - 18 Jan 2015

On your website the JavaScript which calls the autocompleter does not appear to be waiting for the autocompleter itself to finish loading. Compare with this: https://github.com/joomla/joomla-cms/blob/staging/modules/mod_finder/tmpl/default.php

Perhaps you have a layout override for mod_finder that needs updating?

Instead of
jQuery(function($)

you should have
jQuery(document).ready(function()

or something like that.

avatar apachesep
apachesep - comment - 29 Jan 2015

Dear
I have migrated the com_finder / mod_finder from mootools to jquery. first it works. thanks
but there is an issue. my language is Chinese. I type Chinese into input element(one Chinese char only). the autocomplete cannot work normally. suggestion is disappeared. English and number are work very well. I check the outcome of ajax call. there are data from server and the format is correct and charset is correct as well. my Joomla is 3.3.6.

Dose jquery-autocomplete supports CJK? This is my question. How I can overcome this issue.
Thanks

Martin

avatar apachesep
apachesep - comment - 29 Jan 2015

Dear
Again
I try to narrow the problem.

a. i try to verify the outcome of ajax. English / number / chinese are OK.

It means I can get objects of suggestions and query in English and Chinese
onSearchComplete: function (query, suggestions) {
console.log(query);
console.log(suggestions);
},

b. I try to format the result before it s displayed
English / number OK.
Chinese is not OK. It means I cannot get objects. it is .

formatResult: function (suggestion, currentValue) {
console.log(suggestion);
console.log(currentValue);
}

MARTIN

avatar chrisdavenport
chrisdavenport - comment - 8 May 2016

Thank you for reporting this problem. There are known issues regarding Chinese in the current release. I'm not sufficiently knowledgeable about Chinese to confidently address these issues on my own, but if you can work with me to fix and test the issues then we can improve Chinese support for everyone. I'm closing this issue because it is not clearly defined enough to identify the problem. Please contact me on chris.davenport at joomla.org if you can help.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5693.

avatar joomla-cms-bot joomla-cms-bot - close - 8 May 2016
avatar chrisdavenport chrisdavenport - change - 8 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-08 09:31:45
Closed_By chrisdavenport
avatar chrisdavenport
chrisdavenport - comment - 8 May 2016

Add a Comment

Login with GitHub to post a comment