Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by aalekhya on Mar 02, 2009 06:34
open dhtmlx forum
find functionality

Hi
Iam using dhtmtree in my code.Iam using find functionlity in it.
It works fine with text and some special chararacters.
But it is not working for <,> characters.
I changed code in dhtmtree.js as
searchStr = new RegExp(searchStr.replace(/([\*\^\$\&\?\>\<\+\\\[\]\(\)]{1} )/gi,"\\$1").replace(/ /gi,".*"),"gi");

so it working for some special charactes.
But it is not working for <,> characters.
In U r function u called a function called findStrInXML()
In this i think u search the tree using xml.Because these are used as end and beginning tags these are not find when i called find functionality.
So please provide me solution how can i find special cahracters also while searching?

Thanks
aalekhya
Answer posted by Alex (support) on Mar 02, 2009 07:06

Hi, 

if you use Smart XML Parsing, the xml is not parsed at once. Parsing is carried out by portions. So, items are also searched in the xml.

The possible reason for the issue is that browsers can interpret < as &lt; for example, > - &gt;