How to create non-scrolling Lotus Domino view headers on the Web

How to create non-scrolling Lotus Domino view headers on the Web

Formatting Lotus Domino views is not as easy as forms and other design elements. I also never liked that I could not get the Lotus Domino view headers to stay put when scrolling. The technique I explain here uses some simple style sheet entries to prevent scrolling of Lotus Domino view headers on the Web.

This would be used in a form or page where an embedded view is used.

  1. The first part below is the named html <Div> tag, in this case 'MyView', inside which you will embed your chosen view.
    <div id="MyView">embedded view here</div>
  2. Next is the style sheet tags that will make the view scrollable, with it's own "window" size. Notice the reference to the named <Div> tag 'MyView' used with the embedded view.
    div#MyView {
    width: 500px;
    height: 300px;
    overflow: auto;
    }

    The width and height settings control the size of the scrollable window, so the page scrolling can be eliminated.

  3. The next style sheet tags work with the Lotus Domino view's <TH> table tags, which are rendered automatically by the Lotus Domino server.
    th {
    position:relative;
    cursor: default;
    top: expression
    (document.getElementById("MyView").scrollTop-2);
    z-index: 20;
    padding-left: 3px;
    padding-right: 3px;
    background-color: blue;
    }

Again, notice the reference to the named <Div> tag 'MyView' in the expression. This only works for Internet Explorer, but likely can easily be made to work

    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.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

with most other browsers.

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member John O'Connor. 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.

This was first published in August 2006

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.