cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2444
Views
0
Helpful
3
Replies

Accessing node data properties from nodetooltip

Deniz AYDIN
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

I found my fault, and corrected the code.

http://codepen.io/deniza/pen/NpvRvq

View solution in original post

3 Replies 3

Deniz AYDIN
Level 1
Level 1

Hi I forked,

Standart tooltip for with custome values example to log custom value to console with button.


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.

I found my fault, and corrected the code.

http://codepen.io/deniza/pen/NpvRvq

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: