> I like to sync the tree on server but in my case, the tree is based onXML, so it will be a good think to sync the tree withxml.
> so what the best method togetthe tree structure asxml?
>
> thanks
>
> JC
>
> On 11 fév, 18:35, JVDH <
m...@jvdh.net> wrote:
>
> > I've been trying this for the past few hours, but I can'tgetthe
> > treedata into PHP as an array.
>
> > jsTree and jquery-json are running without problems. The data gets
> > posted but I can't decode the string. PHP's json_decode keeps
> > returning NULL. Any suggestions...I'm going crazy here.
>
> > On 8 jan, 13:46, dantan <
hattin...@gmail.com> wrote:
>
> > > Thank you for your quick advice.
>
> > > Since my lastpostI was trying this, an it seems to work:
>
> > > onmove : function(NODE,REF_NODE,TYPE,TREE_OBJ) {
>
> > > var data = $.toJSON(TREE_OBJ.getJSON());
> > > console.log( data );
> > > $.post('/url/to/process',{ data: data });
>
> > > }
>
> > > What is the difference between
> > > TREE_OBJ.getJSON() and
> > > tree1.getJSON ($('#0'))
>