select node to move another page with a vable

13 views
Skip to first unread message

wangsuya

unread,
Dec 3, 2008, 12:33:59 AM12/3/08
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
Reply all
Reply to author
Forward
0 new messages