First, you need to understand that multiple spaces and tabs don’t exist on the web. If your users are using the space bar or the tab key in order to format information (instead of using, say, tables, paragraph indentation or bullet lists), then that kind of formatting won’t be reflected in the browser – EVEN IF Domino inserts the appropriate characters into the HTML.
Web development in Domino is the same as web development on any other platform – if you don’t know HTML and aren’t aware of how the browser interprets markup, you won’t get very far.
the problem is its not known what user will input in the field, the user can insert anything (table, attachment,images etc…) and these things are not shown on web properly. Is there any way or workaround to display the content same in the web as the user entered in the notes.
No – at least not without creating a VERY large and complicated conversion script/program. It is MUCH simpler (and cheaper) to tell your users what not to do than to try to write something like that. You could look at third-party products, though.
No. If the users are using multiple spaces to format things, they will be displayed with only a single space – it doesn’t matter what field type you use. The multiple spaces will show up in edit mode, but not in read mode – that’s the nature of HTML.
The spacing thing is understood but if user gives table, then the format is changed in webl (like the font, border etc). If the user gives image then the image is not dispalyed in the way it is entered…The thing is if it is known what user will enter then its easy to handle the format. But in my case i can’t code speciffically about the input.
Can you tell me how to get hold of these change in formats irrespective of whatever the input is.
Like I said, we’re talking about VERY long and complex code – think in terms of hundreds of hours to do it all. I’m certainly not going to do it for you.
Stan, while I understand your point, it is not entirely accurate. When our Midas Rich Text LSX or CoexEdit encounter tabs or spaces, they convert them to non-blanking spaces (actually, it is just an option, but they can), so the appearance can be the same on the web.
On the other hand, not understanding HTML markup does make web development mighty difficult.
I would suggest enabling the “Automatically enable edit mode” property of the form.
What will happen then is that your RTF will appear as the user entered because this will be an editable document.
However - of course if you want the user not to be able to edit the document then you can run a bit of Javascript on the onLoad event of the form which renders all the items on the form as either disabled or readonly.
That way - even though the document is in edit mode the user will not be able to make any changes unless you make the fields either enabled or ready for input.