Open bshambaugh opened 7 years ago
The load file function experiment is here:
https://github.com/bshambaugh/makebuttons/blob/master/loadfile-example-one.html
Flow for loadfile-example-one.html . Back of the envelope loading file:
LoadFile Before clicking: After clicking and XMLHttpRequest:
Right now I have a pop-up window for the sparql endpoint button that loads a file. Of particular interest are the following experiments:
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?
Integrate the experiments above with:
The result is:
and
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
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.
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
SeeAlso: How to use RequireJS with jQuery http://requirejs.org/docs/jquery.html
This does not seem to be working yet, try bower:
but I get this error: http://requirejs.org/docs/errors.html#mismatch
The Load File / LDP Button works, but the SPARQL Button needs to tied to a function:
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.