Image resource Notes vs Http html

I’m having a problem getting an image resource displayed in the Notes client on a form in computed text set as pass-thru html.

Basically I’m dynamically build links to other documents and can’t use hot spots for the things to click on as there are variable number of items so … have constructed a formula in computed text to produce the following (summerised) pass thru html :

<img src="http://www.server.co.uk/path/db.nsf/doclink.gif?OpenImageResource">”

Now this works but I don’t want to use the “www.server.co.uk” reference and wanted to do something like :

<img src="notes://server/path/db.nsf/doclink.gif?OpenImageResource">

or

<img src="notes://server/path/db.nsf/doclink.gif">

But I just can’t the “notes://” vs “http://” version to work no matter what syntax I try.

Does anyone know what I’m doing wrong?

Also the http version only works when you put the document into edit mode (?) although still shows ok when you flip back to review mode???

Thanks,

Derek

Subject: RE: Image resource Notes vs Http html

A Notes URL will not work in that context. You will have to find a different way to get the output you desire.

Subject: RE: Image resource Notes vs Http html

Hi Andre,

Thanks for that … I now have it half working with the following computed text pass-thru html :

“<img src="/path/db.nsf/doclink.gif?OpenImageResource" width="12" height="14">”

This displays correctly when viewing the document in a browser but not when viewed in the Notes client (801)

Any ideas?

I’ll also post as new separate post

Thanks,

Derek

Subject: RE: Image resource Notes vs Http html

There is no way to refer to image resources with HTML in the client, unless by their Domino (http) URLs. If the Notes client users have access to the Domino web server, they should be able to get the images that way. However, this is a bit of a patchwork solution and I’m not certain it will work the way you would like.

I feel that you have designed yourself into a dead end. Perhaps if you take a step back and describe the end-user requirement, we could be of more help.

Subject: RE: Image resource Notes vs Http html

There is a way but…

You can use local images. Code is “<img src="file:///C:\img\blue_dark.gif">” for example

That means all desktop clients must have your image’s collection on their local disk. Images can be detached in a PostOpen event, the first time and each time you modify or add an image with a smart mechanism

This is not a simple or nice solution but it works ! :slight_smile: