Solved

How to display a custom HTML page

Posted on 2004-09-06
5
277 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
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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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