-
14 Feb 2008 6:15 AM #1
how send tree node's information to server ?
how send tree node's information to server ?
hi
i want to create one tree with Drag and Drup and send that nodes to servert for save this nodes in database !
i create this tree with drag and drap but ...
how can i send node's information of one tree to server for save in database ?
tanx for yr help
-
14 Feb 2008 7:28 AM #2
Here's some code that's not perfect, but should give you an idea....
Code:function saveNode(node) { var conn = Ext.data.Connection(); conn.request({ url: 'saveTreeNode.jsp', callback: function(o,s,r) { alert('done saving'); }, params: { text: node.text, index: node.parentNode.indexOf(node), otherInfo: node.leaf ? 'TRUE' : 'FALSE' } }); }


Reply With Quote