How would one go about adding search capability to the tree. Where and what code needs to be changed,and how will one call it?

-Ammar

tigra

Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline

posted on 5/14/2007 at 09:52 PM

In Tigra Tree Menu PRO search functionality is already available via the API. In free version you can implement it on top of the existing script by
looping through .a_index array and looking at each tree item.

here are the fragments of the Tigra Tree Menu PRO that provide the search functionality (may need adjustments for free version):

"In free version you can implement it on top of the existing script by looping through .a_index array and looking at each tree item."

Where and how exactly?

tigra

Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline

posted on 5/14/2007 at 10:23 PM

where: "on top of the existing script"
how: "by looping through .a_index array and looking at each tree item"
I even provided the samples how PRO version does this.

naqvia

Member

Posts: 13
Registered: 4/12/2007
Location: USA
Member Is Offline

posted on 5/14/2007 at 10:55 PM

I am just confused about why there are three different return statements? wouldnt just one suffice? my js skills are not that good, btw.

tigra

Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline

posted on 5/15/2007 at 03:05 PM

Those are three different methods of the tree (the names of the functions are pretty much self explanatory). BTW: It is not unusual even for single
routine to have multiple exit points. Anyway, if you're not comfortable with the coding you should ask a friend to help you or just go for the PRO
version of the tree.