I am using the following script to try to access the nodes attributes but I get an error get_attributes is not a function. When I check the node in fire bug the is defiantly no get attributes function where am I going wrong?
| function onNodeClicked(sender, args) |
| { |
| var node = args.get_node(); |
| alert(node.get_attributes().getAttribute("CategoryOf")); |
| //you can also set attributes, like: |
| //node.get_attributes().setAttribute("CategoryOf"); |
| } |