?
Solved

How to display a custom HTML page

Posted on 2004-09-06
5
Medium Priority
?
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 11993333
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 1500 total points
ID: 11993349
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
ID: 11993630
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
ID: 11993632
p.s.  It says Lotus-Domino Release 5.0.8
0
 
LVL 1

Author Comment

by:petervullings
ID: 11993705
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 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