Oh, yes, jhs is on the server side, your browser is on the client side, if the original request is in the form http://localhost/ then you probably don't need the base tag, the uri src of the javascript can either be a http://.... or just bare path /.... . In the fist case ,the browser will ask the other website to get the js, while in the second, the browser will issue a http get cmd to jhs, and it is up to jhs how to handle the get request. eg jhs may interpret the ~root as filesystem's root.
Вс, 12 янв 2014, Brian Schott писал(а): > Oh. I am sorry. > Well, I changed ftp: to file: and I get the same error message. Well, not > exactly because I now got also the error mentioned by Joe, too, but in > Safari: > > "[Error] Not allowed to load local resource: > file:///~root/Users/brian/j64-701/addons/graphics/d3/~root/Users/brian/j64-701/addons/graphics/d3/d3.v2.min.js > (43, line 0)" > > > On Sun, Jan 12, 2014 at 10:20 AM, bill lam <bbill....@gmail.com> wrote: > > > Brian, > > > > please note the protocol is file:// not ftp:// > > > > If I read correctly Joe's example got the jpath to dereference the ~. Also > > ~root is hack from jhs, there is no such folder as ~root in > > SystemFolders_j_, > > so that jpath will not handle ~root. > > -- > > > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm