Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-11 Thread Brian Schott
First to review the current state of affairs: I thought Paul's suggestion of adding including a / suffix to the directory name in the tag and putting it in the element would enable me to place script files and style files in a common directory of my own naming. In j64-701/addons/ide/jhs/utilh.

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-11 Thread Joe Bogner
I don't fully understand the issue after reading through the thread a few times.I did run the d3 demo successfully under j8 I followed the readme.md instructions and didn't modify anything load 'graphics/d3' d3heatmap makesampledata_d3heatmap_'' It shows a map of the US. Likewise, the other demo

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-11 Thread Brian Schott
I am really wanting to write a jhs page to create a standalone opengl_es demo. I am using the d3 demo written by the Tirrells to see how. I am stumped right now with defining a directory which will hold all the javascript scripts and the css style files, for example. The tag seems like a natural w

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-11 Thread Joe Bogner
It's a very basic demo but here is one that works for me. I avoided the whole path problem by loading d3 from a cdn. I don't know if you have a requirement that it be local but I assume it wouldn't be that much to change. https://gist.github.com/joebo/591f52147dfe02efa061 Each time you click the

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-11 Thread Brian Schott
Joe, I am wanting to make the directory local so that the scripts and styles can be accessed by name without the directory path needed. The standard JHS demo's use jhr to replace tags like RESULT in the example below. I guess I imagine using jhr with something like PATH. Maybe that is silly. NB.

Re: [Jprogramming] jhs with html canvas (and d3)

2014-01-11 Thread bill lam
When a browser is asked to display a webpage by giving it a url, the brower knows where the anchor point is and can resolve other uri from path relative to the anchor (base url). However if one passes the html source directly, the browser cannot know where is the anchor, so that the uri have to b