Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    11
    Vote Rating
    0
    hadikazemi is on a distinguished road

      0  

    Question 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

  2. #2
    Ext User para's Avatar
    Join Date
    Apr 2007
    Location
    Redmond, WA
    Posts
    918
    Vote Rating
    -2
    para has a little shameless behaviour in the past

      0  

    Default


    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'
    		}
    	});
    }

Thread Participants: 1