Board Logo

openItemByCaption problem: o_item.o_root has no properties ???
cwele - 5/11/2005 at 10:02 AM

(Tree menu PRO v 1.2)

-Im trying to call openItemByCaption() function, in the following way:

<INPUT TYPE="button" VALUE="FindItem" onClick="openItemByCaption('Test')">

- And here is javaScript error:

Error: o_item.o_root has no properties
Source File: http://localhost:8080/demoApp/event_handlers.js
Line: 51 :

a_index = o_item.o_root.a_index,

-What I should to do, in order to avoid this problem ?

rock - 5/12/2005 at 12:36 PM

You are using old version of function 'openItemByCaption' published for versions lower then v1.2. In v1.2 find_item method returns an array of items found, while earlier versions return only first item found.

Please update your openItemByCaption function at the Tigra Tree Menu PRO documentation page.

Back to forum: