[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to display a custom HTML page

Posted on 2004-09-06
5
Medium Priority
?
283 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

650 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