PermaLink Notes 8 Image Security09/03/2007 07:30 PM
Show-n-tell thursday
A new feature of Notes 8 is the Image Security, which is noticed wherever a document displays images from the web. A document that contains passthrough HTML IMG tags is prohibited from displaying the image to protect the user from malicious web sites. Most notably, this is used to protect the user from spam.

How does this affect us? The new image security is a good thing, isn't it? Of course it is! The Notes community has requested this functionality for years, and we have finally got it. The problem is that it effects every document and database application used with the Notes 8 client. Lotus has made it quite easy to get around this though, It would have been nice if they had also documented it.

Looking through the design of the new mail template, I found that the "Show Images" link is on the (FollowUpMemoSubform) subform. The code indicates that a field named $DelayedImagesOK set to the value "ok" would display the inline images. In the mail template, this field is set using the ShowDelayedImages sub, in the DelayedImages script library. What the code does is to create the field $DelayedImagesOK, setting the value to "ok" and saving the document. The client then reloads the document, which displays the images.

A quick test shows that it is enough to add the field as a Computed for Display field to the form, with the value of "ok", to make Notes display the images on document open.

I initially found that the field was initially set to the numerical value 23 before the "Show images" link was clicked. That was not entirely correct. When the document is opened, and the "Show images" link has not yet been clicked, there is another field called $DelayedImages (that is, without OK on the end) which is set to a numerical value. I have not yet found out if this field is set by the Notes client because there are embedded images in the document, or if it is set from some subform or LotusScript which I have not yet found. It is set to a numerical value, and it could be that it indicates the number of images in the document, but I can't be sure of this. If someone else out there knows anything on the subject, please let me know.

I responded to this question on the Notes/Domino 8 forum on Notes.Net developerWorks Lotus, with this response and this response.
This page has been accessed 2485 times. .
Comments :v

1. jack dausman2007-09-10 21:13:57
Homepage: http://www.leadershipbynumbers.com


Good job sleuthing out the image constraints with ND8. I saw the same feature, but hadn't untangled the setting. I'm glad you identified it, but I'm curious why it was made so difficult to surface. I'm guessing there is some unintended consequence which is also not documented




2. Peter von Stöckel2007-09-10 21:38:56


Thanks Jack. I was also surprised that there were no documentation on this subject, since it affects so many different types of applications, not just mail. It feels kind of like they didn't have time to finish the documentation. You could also be right that there is something more behind it.




3. Steve Knight2009-03-03 13:36:52


That's great guys but how about you make it easier to implement for someone who only did Notes Appl Dev 101?




4. Peter2009-03-03 14:23:28


@Steve: It isn't difficult:

"a field named $DelayedImagesOK set to the value "ok" would display the inline images"

also:

"it is enough to add the field as a Computed for Display field to the form, with the value of "ok", to make Notes display the images on document open"




Add Manual Trackback
Please enter the details of the trackback post. Your trackback will not appear on the site until it has been verified. This won't be immediate, as trackbacks are validated on a scheduled basis. Be patient.











Banana Home
klaseliten.gif

About me
Please ignore this link: webadresser
Banana Applications
Me on Notes.Net
Other stuff
By Category
Monthly Archive
Contact Me
BlogRoll
Technorati tags
Lotus Domino ND8 RSS News Feed Blog Admin Lotus Geek OpenNTF BlogSphere