Some Lotus Notes Domino developers may want to create large amounts (more than 64 KB) of dynamic JavaScript in the $$HTMLHead or "HTML head content" section using either @DBColumn or @DBLookup formulas. This isn't possible for all developers, so here is a solution.
Place a link in the "HTML head content" to a page in one of your Lotus Notes databases. In that database, create a page, treat the content as HTML and name the file using a .js extension. If necessary, pass all of the arguments in the call to that page. The JavaScript code below furthers explains the process.
Add this code to the form's "HTML head content" section:
(Click on code for enlarged view and script download.)
Next, create a "Computed Text" using this formula in the line that requires a parameter:
(Click on code for enlarged view and script download.)
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Azeddine Taoufiqi. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.