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 demos work for me too. In terms of the html409 error, I commonly get that when I launch jhs. It doesn't seem to impact anything Is the question how to build a standalone jhs page to do a simple d3 demo? If so, I can try to help with that. On Sat, Jan 11, 2014 at 8:03 PM, Brian Schott <schott.br...@gmail.com> wrote: > First to review the current state of affairs: I thought Paul's suggestion > of adding including a / suffix to the directory name in the <base> tag and > putting it in the <head> 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.ijs the noun hrtemplate controls the head > element for the main JIJX window, not for the derived URL that I want to > create. > > However, there is a noun hrtemplate in the D3 demo in the script file > jhsmod.ijs which creates a <head> element independently for the d3 locale > and for each page it creates. So I added the <base> reference in jhsmod.ijs > as shown below. > > hrtemplate=: toCRLF 0 : 0 > HTTP/1.1 200 OK > Content-Type: text/html; charset=utf-8 > Connection: close > > <!DOCTYPE html> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <title><TITLE></title> > <!-- NEXT LINE ADDED --> > <base href="/Users/brian/j64-701/addons/graphics/d3/"/> > <CSS> > <JS> > </head> > <BODY> > </html> > ) > > > Unfortunately that produces the following error message in the jijx window > after the 2 commands (require and load). Notice how the very long error > message line contains both the text for the <base href...> and the text for > HPATH, where the latter begins with "~root" and the two are catenated. I > cannot find where in the code that HPATH part is added and therefore cannot > remove it. So I could use some help. > > require 'graphics/d3' > > in jhsmod.ijs > > load 'graphics/d3/demo' > > |domain error: gsrcf > > | htmlresponse y ,~gsrchead rplc'<TYPE>';x;'<LENGTH>';":#y > > *** response not sent for > Users/brian/j64-701/addons/graphics/d3/~root/Users/brian/j64-701/addons/graphics/d3/d3.v2.min.js > > *** html409 Conflict > --- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm