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
Labels |
Added:
?
|
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
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
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.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-08 09:31:45 |
Closed_By | ⇒ | chrisdavenport |
Set to "closed" on behalf of @chrisdavenport by The JTracker Application at issues.joomla.org/joomla-cms/5693
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.