This week I've learnt to new two new tricks in Lotus Notes that have made my job as a developer easier and thus made me smile.
Firstly, the field $$HTMLFrontMatter.
I was doing some development with Javascript Libraries (JQuery and Prototype) and found that when I came to put everything in a form rather than a page things stopped working.
I compared the difference in the HTML source between the the page and the form (I had after all just done copy and paste). The only difference was the HTML header.
Domino sticks the following in the top of the form:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I just wanted (by the way the enviroment I am in is R7)
It was this header that was stopping my lovely new JQuery and Prototype functionality from working. I was resided to failure until I found the wonderful $$HTMLFrontMatter field. It's never been a problem because I've never had the problem despite doing plenty of web development that included JQuery. It's documented in lots of places like Codestore , Notes.Net and Domino 2.0. It now means I can just output as the header as I want and everything works.
The other thing I learnt was that to set the Reply To address in a MIME email I need to set "Reply-To" not "ReplyTo" as I thought it would be e.g.
Set mimeheader = body.CreateHeader("Reply-To")

1 comments:
Hi,
Yes, it's true.
It's not a secret, you just search a year to find thoses secrets fields that are not documented anywhere except in a IBM Red book, in one post of their forum, or on those Domino's guru blogs.
What a shame that developers must do the job for IBM. I love msdn.
Now, you are in the Secrets of God.
Post a Comment