wangsuya
unread,Dec 3, 2008, 12:33:59 AM12/3/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootree
Hi everyone
I used example_1.html and example_4.html, want to make a program
when select one node, move to another page with a vable. like:
window.onload = function() {
// --- ordinary MooTreeControl example:
tree = new MooTreeControl({
div: 'mytree',
mode: 'files',
grid: true
},{
text: 'Root Node',
open: true
});
tree.disable(); // this stops visual updates while we're
building the tree...
var node1 = tree.insert({text:'Subnode 1', id:'1',
onSelect: function(state) {
var b = new String;
b = id;
$('events') = window.location.href("test.php?
hikisu=b");
}
});
..........
I want pass test.php the node id, but it did not success, alway just
get
value as b not id's value '1'. who can tell me how can I realize what
I want. Thanks in advance.
WangSuya