Solved

How to display a custom HTML page

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

765 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