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

Buttons need to ultimately trigger the rest of the visualization program #22

Open
bshambaugh opened this issue May 8, 2017 · 15 comments

Comments

@bshambaugh
Copy link
Owner

Following Issue #13 , there needs to be functions that tie the sparql query into the function that loads the graph. The same needs to be done for the load file / LDP container. See the load file function triggered by a button developed somewhere.

@bshambaugh
Copy link
Owner Author

The load file function experiment is here:

https://github.com/bshambaugh/makebuttons/blob/master/loadfile-example-one.html

@bshambaugh
Copy link
Owner Author

bshambaugh commented May 8, 2017

Flow for loadfile-example-one.html . Back of the envelope loading file:

LoadFile Before clicking:
screenshot from 2017-05-08 17 16 43
After clicking and XMLHttpRequest:
screenshot from 2017-05-08 17 16 52

@bshambaugh
Copy link
Owner Author

bshambaugh commented May 19, 2017

Right now I have a pop-up window for the sparql endpoint button that loads a file. Of particular interest are the following experiments:

https://github.com/bshambaugh/node-arc-d3/blob/master/js/tests/cssgridandsparqljquerydialog/application/index-adid-strip-nobuttons-nojs-loadf.html

https://github.com/bshambaugh/node-arc-d3/blob/master/js/tests/cssgridandsparqljquerydialog/application/index-adid-strip-button-callfn.js

Obviously, this should revert to the load file / LDP container button instead. So work will ensue to do this instead. I need to load the file from the text field to the left.

The sparql endpoint should use the
$( "#users" ).append( siteDomain + encodeURIComponent(name.val()) ); method to send a uri encoded uri. security?

@bshambaugh
Copy link
Owner Author

@bshambaugh
Copy link
Owner Author

bshambaugh commented Jun 26, 2017

I created a config file for jquery-ui that loads jquery-ui, but I am not sure what is meant by an anonymous module. Does this mean I can give it a name in the config file? Maybe it is this???

http://tagneto.blogspot.com/2010/09/anonymous-module-support-in-requirejs.html

seealso: https://github.com/bshambaugh/node-arc-d3/blob/master/js/config.js

@bshambaugh
Copy link
Owner Author

bshambaugh commented Jun 26, 2017

I am also not sure how to load this file with require.js:

https://github.com/bshambaugh/node-arc-d3/blob/master/js/cp-index-adid-strip-button-callfn.js

hopefully it will all work magically :) if I just load it.

@bshambaugh
Copy link
Owner Author

I get this error: ReferenceError: $ is not defined[Learn More] for cp_index_adid_strip_button_callfn.js

Try looking at: http://www.requirejs.org/jqueryui-amd/example/webapp/app.html

and https://stackoverflow.com/questions/17793289/requirejs-jqueryui-widget-not-defined

@bshambaugh
Copy link
Owner Author

SeeAlso: How to use RequireJS with jQuery http://requirejs.org/docs/jquery.html

@bshambaugh
Copy link
Owner Author

@bshambaugh
Copy link
Owner Author

This does not seem to be working yet, try bower:

https://learn.jquery.com/jquery-ui/environments/bower/

@bshambaugh
Copy link
Owner Author

but I get this error: http://requirejs.org/docs/errors.html#mismatch

@bshambaugh
Copy link
Owner Author

@bshambaugh
Copy link
Owner Author

The Load File / LDP Button works, but the SPARQL Button needs to tied to a function:
1-sm-success

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

1 participant