Yes, it looks like HEXTRA will work: Here's a simple page that uses <base> with an image from jsoftware.com
coclass'demobase' coinsert'jhs' HEXTRA =: 0 : 0 <base href="http://www.jsoftware.com/"> ) jev_get=: 3 : 0 'demobase'jhr'' ) HBS=: 0 : 0 '<img src="jsoftwarea.gif"/>' '<H1>TEST</H1>' ) On Sat, Sep 6, 2014 at 1:08 AM, greg heil <[email protected]> wrote: > Bill > >>Hmm, on first glance it looks like the HEXTRA noun might do the trick and >>carry a <base> tag! It is not yet clear to me if that noun is live in Eric's >>code though. But if it does then getting a point of invocation back to JHS >>would be the next step in making the page portable. > > greg > ~krsnadas.org > > -- > > from: bill lam <[email protected]> > to: [email protected] > date: 5 September 2014 20:54 > subject: Re: [Jgeneral] <base> in JHS? > >>the header is provided by the noun hrtemplate in utilh.ijs. I can see no >>place holder for modifying the <head>, but for as a proof of concept, you may >>amend that noun to hard-code the base tag that you wanted and see if it can >>work. If it does, you may request Eric to allow additional place holders in >>that template similar to that currently worked for TITLE and CSS etc. > > -- > > from: greg heil <[email protected]> > to: General forum <[email protected]> > date: 5 September 2014 19:53 > subject: Re: [Jgeneral] <base> in JHS? > > Bill > >>i think i can craft an <img> tag from Bob's hint. But afaict JHS only outputs >>to the inside of a <body> tag. The <base> tag must go in the <header>. > >>Is there an example of a whole html page (<header> & <body>) written without >>JHS but which accesses a JHS server? Or can you only invoke the server by a >>URL, as it appears to me? > >>ideally JS would be in control, issuing AJAX calls to a JHS instance on an as >>needed basis. > > ---~ > http:i.tgu.ca/bright_build_pics > > greg > ~krsnadas.org > > -- > > from: bill lam <[email protected]> > to: General forum <[email protected]> > date: 5 September 2014 16:21 > subject: Re: [Jgeneral] <base> in JHS? > >>if base tag is interpreted on browsers (client side), it should be unrelated >>to jhs. > > > > -- > > from: greg heil <[email protected]> > to: General forum <[email protected]> > date: 5 September 2014 13:10 > subject: <base> in JHS? > >>It appears that the base for JHS (at least in j801) is set at where the bin >>directory (ie containing the j.dll) is. So one can have > > <img src="xx.jpg"> > >>but only if xx is in that directory. This is problematic as it will be a data >>driven app, and the data needs to be at a completely different directory and >>even drive. > >>How would one set a <base> tag in JHS? > > greg > ~krsnadas.org > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
