03-03-2017 10:19 AM
Hi,
I am tring to update selected node's properties like status,latitude and other some node data properties. For example upon on update method "
methods: { | |||
// what happens when you hit 'Save' button | |||
'update': function () { |
$.ajax({ | |||
type: "POST", | |||
url: "updateNode.php", | |||
data: this.node().latitude, | |||
success: function(return) { | |||
console.log(return); | |||
} | |||
}); | |||
} | |||
} |
But I can not access the node properties other than label and id. Also is it possible to pass current node's data to the php as json object.
Solved! Go to Solution.
03-15-2017 05:16 AM
I found my fault, and corrected the code.
03-14-2017 07:31 AM
Hi I forked,
http://codepen.io/deniza/pen/NpvRvq
It gives an error of undefined object. If set method is removed from node it works fine. I tried several approach but I guess missing something.
03-15-2017 05:16 AM
I found my fault, and corrected the code.
03-15-2017 11:08 AM
Hi Deniz,
My apologies for no reply: looks like your post got lost in the shuffle. I'm glad you've found the resolution to all your concerns.
- Alex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide