Changing dataProcessor url

I like to change the dataProcessor url. What I’m doing now doesn’t seem to work.

I’m loading a tree an setting a dataProcessor like this (works fine):

var tree = new dhtmlXTreeObject(“treeBox”,“100%”,“100%”,0);
myDataProcessor = new dataProcessor("file_save_dhtmlxtree.php?type=0);
myDataProcessor.init(tree);

But later on I want to change the url (type variable to 1):

var myDataProcessor select = null;
myDataProcessor = new dataProcessor("file_save_dhtmlxtree.php?type=1);
myDataProcessor.init(tree);

This doesn’t work. What is the correct way of doing this?

Please check following topic viewtopic.php?f=2&t=14594