Hello!
I’m working on dynamic tree, based on xtree2. I wanted to add onclick to tree nodes and it was working fine, but suddenly it stop to work. The problem is that when I click on the node, the code from onclick appears in location bar of browser and instead of expected page, I see ‘true’ (result of script) in browser window.
The static code
[CODE]<a href=”#” onclick=”javascript:loadform(‘customers/edit/cust1’);”>cust1</a>
works fine, but dynamically generated code:
[CODE]
<a href=”#” class=”webfx-tree-item-label” tabindex=”-1″ onclick=”javascript:loadform(‘customers/edit/cust1’);”>cust1</a>
[CODE]
does not work. What I’m doing wrong ?