Skip to content

Instantly share code, notes, and snippets.

@jackkitley
Created January 18, 2013 09:17
Show Gist options
  • Save jackkitley/4563360 to your computer and use it in GitHub Desktop.
Save jackkitley/4563360 to your computer and use it in GitHub Desktop.
$.post('data/Ajax.php', {'class': 'Catalogue', method: 'loadAttributeSelectedItems', params: ['none']}, function(data) {
var splitloads = data.split(',');
$(splitloads).each(function(index,attributetreehierarchy) {
console.log(attributetreehierarchy);
treeattr.loadKeyPath(attributetreehierarchy, function(node, status){
if(status == "loaded") {
node.expand();
}else if(status == "ok") {
node.activateSilently()
node.select(true);
}
});
});
}, 'json');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment