Bob >Not sure what the best strategy is for now. In general one uses relative >rather than absolute URLs so one can easily relocate a coded page. If there >were some way for the page to send its location to a server... then absolute >URLs could be constructed dynamically, at the cost of considerable traffic.
>ideally i would like to have a "precompiled" version of the page which could >be perused at any time. The dynamic portions only available when the server >is. That functionality may need to be on a separate page though. i am aiming >to have a browser, and an authoring platform, for Keywords in exif's of >images. The browsing functionality is reasonable to do in js, but a facile >authoring platform seems to mandate an array language like J. (Joe if you can >hurry up with your coffeescript implementation..:-) >Thanks for the hint on how to construct tags in JHS. We will need to make a >common library at some point. Could one use such for a header tag like <base> >though? The example i have seen so far only work on body tags. Joe >By non-server i mean just that:) No JHS (or PHP or...) involved. Just the >html, css and js processing a users machine supplies. >The gist you gave is very useful though i would again like to supply the ><script) tag for d3 to be in the header and not a local file - but d3's own. greg ~krsnadas.org -- from: robert therriault <[email protected]> to: [email protected] date: 5 September 2014 14:18 subject: Re: [Jgeneral] <base> in JHS? >Don't click on the link in my previous email, it was meant as dummy but some >real estate group has that link. My apologies bob -- from: robert therriault <[email protected]> to: [email protected] date: 5 September 2014 14:16 subject: Re: [Jgeneral] <base> in JHS? Hi greg, >For off site I would replace the path with a standard url and see if that >works eg. "http://www.homepage.com/images/sample.jpg" >I haven't seen a way to create an img object, but I have used other verbs that >do exist such as jhdiv as templates jhdiv=: 4 : 0 '<div id="',x,'">',y,'</div>' ) jhimg=: 4 : 0 '<img id="',x,'" src="',y,'"/>' ) you would then add 'id' jhimg 'srcaddress' to the HBS file untested Cheers, bob -- from: Joe Bogner <[email protected]> to: [email protected] date: 5 September 2014 14:09 subject: Re: [Jgeneral] <base> in JHS? >greg, can you elaborate on what you mean by 'non-server html' -- specifically >what you mean by this: "sounds like you can do very little in non-server html >then." >I could probably help further if i understood that statement better. As far as >I know, JHS can do most any common web server task. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
