Re: Local images and the browser widget

2018-07-29 Thread Stephen MacLean via use-livecode
Hi Mike, Thanks for that! I was doing the same thing at the same time:) My code for setting up the server: local sTempMedia command setTempMedia ### Set the location of the tempMedia folder # set the defaultFolder to the folder containing the stackfile set the itemDelimiter to slash get

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
Decided to try using the httpd library, and it seems to work pretty nicely. If you want to set up a very simple web picture viewer (VERY simple) the following code is a working but minimal start. local sBaseDir on mouseup httpdstart "newrequest",,"My Picture Server" --start the server on

Re: Local images and the browser widget

2018-07-29 Thread Stephen MacLean via use-livecode
Thanks Mike, yes that does work for just displaying the image. I’m building HTML on the fly and wanted to include the local image if there was one, for testing. This will be a moot point for production as everything will be served via a web server, but I was hoping to see this for testing. I

Re: Local images and the browser widget

2018-07-29 Thread Stephen MacLean via use-livecode
No, the Folder is "ITB pubEngine”. The %20 is an URL escape for a space. I was trying to avoid the relative path problems by giving it an absolute path, but that doesn’t seem to work. Best, Steve > On Jul 29, 2018, at 4:58 PM, Peter Bogdanoff via use-livecode > wrote: > > It is very

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
Sorry, that should have been.. Set the url to "file :///Users/steve/Dropbox/I TB%20pubEngine/tempMedia/995786d6-4429-4821-8b21-8e811289e12c.jpg" On Sun, Jul 29, 2018 at 3:03 PM Mike Bonner wrote: > If you just need to see the image, you can do it by changing

Re: Local images and the browser widget

2018-07-29 Thread Mike Bonner via use-livecode
If you just need to see the image, you can do it by changing your method.. Instead of setting the htmltext, it should work to set the url to " http://Users/steve/Dropbox/ITB%20pubEngine/tempMedia/99578 6d6-4429-4821-8b21-8e811289e12c.jpg" I'm not expert, but I think there is some type of

Re: Local images and the browser widget

2018-07-29 Thread Peter Bogdanoff via use-livecode
It is very probably the file path. Is: ITB%20pubEngine the actual name of the folder? Peter > On Jul 29, 2018, at 1:31 PM, Stephen MacLean via use-livecode > wrote: > > ox/ITB%20pubEngine/tempMedia/995786d6-4429-4821-8b21-8e811289e12c.jpg > " > & ">" into tHTML