I am using ‘findInPage(str)’ method of java script for searching in my tree view like application having nodes (collapse/expanded).
The problem I am facing is that while searching a phrase (Find Next), the explorer throws an exception in case, when ‘findInPage(str)’ method finds a particular string in the collapsed node and work fine in case of expanded node. The requirement of my application is that I have to perform searching only on those nodes which are expanded at that time.
For example if a person has two postal addresses i.e. present and permanent, represented by two nodes of tree view, then after applying ‘filter’, user can only search in present postal address of a person node, which is expanded, but not in permanent postal address node which is collapsed at that time and vise versa.