tnn
Junior Member
Posts: 5
Registered: 4/24/2008
Location: SJC
Member Is Offline
|
| posted on 4/24/2008 at 04:40 PM |
|
|
onClick handle in tree item.
Hello,
I have Tigra Tree Menu Pro.
I'd like to implement onClick handle in the tree item instead of going to the link.
here is sample of my tree item:
['machine1','machine1.html',{'tw':'_self','tt':'machine1'}],
so instead of going to machine1.html, I like to change to:
['<a href="#" onClick="onclickhandle();">machine1</a>','machine1.html',{'tw':'_self','tt':'machine1'}],
how ever it's not working. please help point out the solution.
thanks
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/25/2008 at 02:59 PM |
|
|
try:
['machine1','javascript:onclickhandle()',{'tw':'_self','tt':'machine1'}],
|
|
|
tnn
Junior Member
Posts: 5
Registered: 4/24/2008
Location: SJC
Member Is Offline
|
| posted on 4/25/2008 at 08:34 PM |
|
|
hello,
it works. :-D Thank you.
now I have a new problem. I can't pass a string into onclickhandle. example:
['machine1','javascript:onclickhandle("machine1")',{'tw':'_self','tt':'machine1'}],
I check by copy the link from tree menu it has only javascript:onclickhandle(
I did \" or ' the string but both failed.
please help.
Thanks.
|
|
|
tnn
Junior Member
Posts: 5
Registered: 4/24/2008
Location: SJC
Member Is Offline
|
| posted on 4/26/2008 at 07:48 PM |
|
|
escape single quote works \'
thanks
|
|
|