LotusScript.doc is being well received

Based on the feedback I have received in regards to the annoucement of LotusScript.doc I think it is safe to say that this is a tool developers has been missing. I have received a number of e-mails from people who would like to enroll as “beta-testers” so that’s very nice.

I plan to start the beta-program on Monday and then target a release to the community the coming week (15 August). I just need to finish up the user documentation before sending the application to the beta-testers.

Stay tuned…

Introducing LotusScript.doc

This blog post is to introduce LotusScript.doc to the Notes developer community. LotusScript.doc is a tool I wrote that aims to be for LotusScript what javadoc is for Java.

Why LotusScript.doc?

Notes applications are very hard and time consuming to document. When we think about documenting Notes applications we normally only document the actual application (the user manual) since there isn’t a standard way of documenting the LotusScript code – until now…

LotusScript.doc is a Notes application you can use to generate HTML documentation for LotusScript code in Notes databases. The produced format is the same as for javadoc.

To find out more head over to the project website at www.lsdoc.org.

Using JavaScript to generate table of contents for a webpage

Combing the DOM (Document Object Model) with JavaScript makes it easy to dynamically build the TOC. Now I only have to add extra sections and they are automatically added to the TOC. Clicking the item in the TOC will go to the section on the page.

An easy solution. Nice.

Code

[<ul id="toc"></ul>

function buildTOC() {
   // get bullet list holder
   var toc = document.getElementById("toc");

   // get all anchors on the page
   var anchors = document.anchors;
   for (var i=0; i]
[<a name="section1" class="no_style">]Section 1[</a>]
Ut dolore veniam ullamcorper iriure molestie in commodo aliquip sed in enim accumsan iriure iusto. Dolore dolore eu tation ut hendrerit tincidunt vulputate nulla. Exerci, vulputate velit, quis dignissim minim, blandit nonummy facilisis at blandit augue nostrud magna nonummy, wisi nulla consequat. Enim odio, in nostrud zzril ut consequat accumsan delenit feugait suscipit volutpat ut et at. Augue nisl praesent molestie qui ut dolore eum minim vel dolor luptatum vero magna iusto et.

[<a name="section2" class="no_style">]Section 2[</a>]
Consequat exerci feugiat eum augue accumsan feugiat blandit odio. Tation te, vel dolore duis te commodo elit qui at in feugait iriure vero, ullamcorper nostrud lorem ipsum feugiat, erat ex. Eros vel nonummy zzril wisi quis consequat in autem ut suscipit amet, amet erat at duis minim in molestie.

[<a name="section3" class="no_style">]Section 3[</a>]
Eu esse at et feugait elit, lorem, zzril, blandit eum facilisi feugiat, commodo nulla ut vel tation euismod accumsan, qui. Duis, in amet vel esse ad, ad vero vel facilisis minim in nisl laoreet iriure tation eros molestie dolor. Odio vel quis nostrud autem dolor et exerci vulputate augue erat in nisl iusto dolore vulputate, aliquam, laoreet ullamcorper dignissim dolor adipiscing ad qui. Hendrerit te at diam ea quis, aliquip molestie wisi erat praesent, luptatum adipiscing nonummy nostrud zzril nisl consequat et euismod. Enim ullamcorper consequat lobortis, minim wisi augue nisl diam, esse suscipit duis ex eum odio dolore, ut ut. Delenit ex iusto et ex, ex tincidunt illum luptatum eu te in in feugiat minim augue, sit dolore blandit iusto, consequat duis vel nulla duis at.

Result