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

allow response to graph loaded #65

Open
GoogleCodeExporter opened this issue Mar 10, 2016 · 0 comments
Open

allow response to graph loaded #65

GoogleCodeExporter opened this issue Mar 10, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Currently there is no way to execute a callback function when the graph has 
been loaded and parsed.  It is helpful if you want to display a loading icon 
and hide it when the graph is loaded.  Since the load function uses 
AJAX.Request any statements after canviz.load are executed directly without 
waiting for the load function to complete.


I have attached a diff output file that includes my fixes for this.  I added 
options to the canviz object as well as an event handler that manages 
callbacks.  Inside the load(AJAX.Request(onComplete())) I added a call to the 
event handler with an event named loaded.  

Not sure where else others might want to respond to the work the canviz is 
doing, but this will let you insert aribrtary event handlers as needed in the 
code.  Sorry if I didn't put this in the correct place.  

Original issue reported on code.google.com by nharmony...@gmail.com on 3 Nov 2010 at 6:10

Attachments:

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

No branches or pull requests

1 participant