This tip eliminates typing in the HTML on a page or a form and gives the page or form a cleaner look (by storing the HTML Code in different HTML files).
This is similar to including server side "*.js" files.
<SCRIPT SRC="/Server/Database.nsf/vwScriptLibrary/isPhoneNo/$FILE/serverscript.js?OpenElement"></SCRIPT>
Code your HTML in a file and save it as somecode.htm or .html.
Store this HTML file as New Image Resource (R5 Designer).
Now treat this as an image and insert where you want in the page.
Be careful that the HTML code you will be inserting should be a subset of original code, if you code the entire page. i.e (If you are inserting a table make sure you will have only tags necessary for creation of table and not the beginning/ending HTML or body tags).
For 4.x
The URL HOTSPOT should look like this:
http://server/myDatbase/(imagesView)/somecode.html/$file/somecode.html
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in March 2001