Hi,
I am unable to find items in tree when they have accentuated or special characters.
try:
labcollector.com/demo/extra_modules/eln/
(test / test)
thanks
Pierre
Hi,
I am unable to find items in tree when they have accentuated or special characters.
try:
labcollector.com/demo/extra_modules/eln/
(test / test)
thanks
Pierre
Hi
You can find in file dhtmlxtree.js in sources folder method definition :
dhtmlXTreeObject.prototype._findNodeByLabel=function(searchStr,direction,fromNode){
An find there the new line:
searchStr = new RegExp(searchStr.replace(/([.?*+\[]()]{1})/gi,"\$1").replace(/ /gi,".*"),“gi”);
Add there all your special symbols like here (plus accentuated):
searchStr = new RegExp(searchStr.replace(/([[b]^[/b].?*+\[]()]{1})/gi,"\$1").replace(/ /gi,".*"),“gi”);
I meant words containing letters like:
è ã ç ê …
do we need to put all them in the code you told me?
And what about chinese, japanese, greek and other alphabets?
Maybe the search method must be totaly changed…
thanks
Pierre
findItem searches the exact text that you pass as parameter.
If you search è and a tree item contains the same letter, this item will be highlighted.
If I write here, it is because it does not work for us.
I gave a demo link and you can open the tree and see an accentuated word and try to search for it… You will see it only finds simple words with no special letters…
Pierre,
Could you attach an example of xml ?
problem solved with correct reencoding into UTF-8 of the texts.
thanks.