Open
Conversation
Author
|
Gentle bump on this. My database is now live http://chield.excd.org/. I'm presenting it at a workshop soon, and it would be great if this functionality could be added! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm developing a database of causal hypotheses. I'd like the user to be able to export some of the DAGs in my database into dagitty. I couldn't find an easy way to import a file, without creating a DAG on your server first. If there's already a way to do this, that's great! If not, I've suggested adding some code to allow a user to pass data from a URL parameter into the
adj_matrixtext box, then reload the DAG. This will allow me to add a link on my website for the user to open the DAG in dagitty, e.g.:http://www.dagitty.net/dags.html?adjmatrix=B%201%20@1.400,-1.460%0AD%20O%20@1.400,1.621%0A%0AB%20D
I'm not a security expert, so if this is a bad idea because it will allow arbitrary injection, please ignore this suggestion.
I've tested the addition to main.js, and it seems to work. I guessed where the call should go in the dags.html, but have not tested this. Note that the function
loadDagFromUrlParameter()does nothing if it doesn't find a URL parameter namedadjmatrix.