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

On Sep 5, 2014, at 1:57 PM, greg heil <[email protected]> wrote:

> Bob & Joe
> 
>> sounds like you can do very little in non-server html then. i will be using 
>> Dropbox and currently "User" is in a non-public directory (so its 
>> writeability can be shared across authors, which cannot be done in a Public 
>> directory). i am not sure about making a path from a non-public to the 
>> Public directory where the data must be.
> 
>> Using User seems to tie the data to the same machine too. i do envision the 
>> data being on another (cloud) machine but the server being at my home 
>> machine (likely with a redirect).
> 
>> Also i have not been able to find functionality for creating <img> tags in 
>> utilh.js. Would it be somewhere else?
> 
> greg
> ~krsnadas.org
> 
> --
> 
> from:     Joe Bogner <[email protected]>
> to:     [email protected]
> date:     5 September 2014 13:39
> subject:     Re: [Jgeneral] <base> in JHS?
> 
> hi greg, this thread may help:
> http://www.jsoftware.com/pipermail/programming/2014-January/034484.html
> 
> --
> 
> from:     robert therriault <[email protected]>
> to:     [email protected]
> date:     5 September 2014 13:18
> subject:     Re: [Jgeneral] <base> in JHS?
> 
> Hi Greg,
> 
> Does it not work if you replace xx in "xx.jpg" with complete path eg.
> "Users/Uname/folder1/folder2/fname.jpg"
> 
>> If that does work you can assign the path string to a variable to make it a 
>> bit more readable.
> 
> Hope this is helpful.
> 
> Cheers, bob
> 
> --
> 
> 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

Reply via email to