Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load data attributes dynamically #49

Open
gg4u opened this issue Oct 28, 2013 · 1 comment
Open

load data attributes dynamically #49

gg4u opened this issue Oct 28, 2013 · 1 comment

Comments

@gg4u
Copy link

gg4u commented Oct 28, 2013

hello, I'd love to add callback functions so that data attributes to display on the left bo (e.g. images, attributes of the node) are loaded dynamically.

This would let the application to be dropped with essential information, and the rest to be pulled from external sources.

Indeed I'd like to use the application also as a website: in such a case there is a need to optimize the data transmission for large data.json.

any help / guidelines where to insert ajax / jquery code?

@computermacgyver
Copy link
Member

Hi gg4u, Sorry for the delay. Loading attributes dynamically sounds like a great option and I would definitely love to keep in touch on this. The place to start would be the nodeActive function in main.js. It receives one parameter, "a", which is the index of the id of the node. This function is bound to the "upnode" event in sigma earlier in main.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants