Solved

How to display a custom HTML page

Posted on 2004-09-06
5
275 Views
Last Modified: 2013-12-18
Hi people,

I'm an internet developer but never user Lotus Notes before.  I have a client who creaqted a form in Lotus, and wanted us to pretty it up a bit.  I have developed an HTML page to use instead of the form.  How do I now insert this?

They are using Lotus Notes 4.6

If I go to the form, select all, and paste in my HTML, then set it as an HTML field, all appears to be well when viewwed in the browser....

HOWEVER - Lotus seems to wrap a second <head> and <body> tag around the document, and insert its own <form> definition, even though these are already included in the HTML.  How do I stop Lotus from inserting these extra HTML elements and just display my page 'as-is' with no extra garbage?

TIA,
Peter
0
Comment
Question by:petervullings
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
Comment Utility
It ain't that easy buddy. I give you the facts.

Lotus Notes/Domino ain't a web pages desiging software. So you just can't paste any "composition" into a Notes/Domino "Form" and expect it to begin working.

A Notes/Domino Form is "potentially" a combination of layout and code. Much like, if you are aware of scripting, an HTML element may have script associated with it, elements on a Domino/Notes Form also have code associated with it. This code is associated in many ways and executes based on event changes.

When you paste a "prettied up" design to a Form, you overwrite the design of the Form, i.e. the code associated with (in most probability) gets lost.


The solution?

The solution is to make the Notes Developer apply the design changes himself. Just tell him what changes you want and he will implement them.

Another solution is to use Stylesheet. In scenarios where the look and feel needs to be changed frequently, and hence the developers' involvement isn't desired, this is the best method. But, for you to be able to use this method effectively, the developer must have designed the form keeping stylesheet in mind. If he didn't account for stylesheet (depended on Domino to generate everything), Domino will ignore it.
0
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 500 total points
Comment Utility
Ah, I re-read you. May be you can benefit from this advice.

>> Lotus seems to wrap a second <head> and <body> tag around the document, and insert its own <form> definition, even though these are already included in the HTML.  

Yes, Domino DOES GENERATE its own code, complete with a HEAD, BODY, form definition and everythign else. Normally, you can't prevent Domino from doing so, becuase that will defeat the whole purpose of Domino.


>> How do I stop Lotus from inserting these extra HTML elements and just display my page 'as-is' with no extra garbage?

There is a setting in the form design called - "Treat document contents as HTML". Enable this setting and everything you write on the form will be treated as plain HTML. Probably this is what you are looking for. However, be warned that, if you do enable this setting, you will have to take care of everythin yourself. Domino will generate no code for you anymore.



0
 
LVL 1

Author Comment

by:petervullings
Comment Utility
Hi. Thanks for the replies.  I've tried that setting before actually, but all i get on the server is:

Error 500
HTTP Web Server: Application Exception - Documents treated as HTML cannot be edited

Any ideas?
0
 
LVL 1

Author Comment

by:petervullings
Comment Utility
p.s.  It says Lotus-Domino Release 5.0.8
0
 
LVL 1

Author Comment

by:petervullings
Comment Utility
Haha!  I got it....

The default view or whatvere it is has a ?OpenForm.   This needed to be changed to ?ReadForm

All is well and good! Thanks for all your help
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now