Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Using Checkbox and radio form elements in Nodes
kozman
Member

Posts: 15
Registered: 4/10/2003
Member Is Offline
posted on 4/14/2003 at 06:34 PM Reply With Quote
Using Checkbox and radio form elements in Nodes


I noticed that the tree control cannot support the checkbox control embedded as part of a node text.

It shows the checkbox fine, however, I can't click to turn it on. I have to resort to onMouseDown="this.checked=!this.checked" to turn the control on and off when its embedded as part of a tree control structure.

Is there a way to turn off the inherited clicking behavior of a node since it doesn't expand out to any children?

TREE_NODES = [
["Control",0,
["<input type='checkbox'>"]]]
View User's Profile View All Posts By User U2U Member
kozman
Member

Posts: 15
Registered: 4/10/2003
Member Is Offline
posted on 4/14/2003 at 06:35 PM Reply With Quote

sorry...syntax should be:

TREE_NODES = [
["Control",0,,
["<input type='checkbox'>"]]]
View User's Profile View All Posts By User U2U Member
how


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 4/15/2003 at 07:53 AM Reply With Quote

maybe you'll find this experience helpful:

function hselect(myitem) {
var mybox = document.getElementById('mycheckbox' + myitem.n_id);
mybox.checked = !(mybox.checked);
return true;
}

TREE_NODES = [["Control",0,0,
["<input type='checkbox' id='mycheckbox1'>fajsdlkf",0,{'sb':'','hs':'hselect'}],
["<input type='checkbox' id='mycheckbox2'>fajsdlkf",0,{'sb':'','hs':'hselect'}]
]]
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   
Tigra Tree Menu PRO
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004