INET_PROGRAMS (OpenInsight Specific)
At 02 NOV 2000 04:16:30PM R Richardson wrote:
I have found that using the
html =Return this text"
in an OI INET program is not seen by netscape
where Explorer does.
By just trying to fix it I happend to put
a html =Return this text" on the first
line of text to be returned and suddenly Netscape
would see it.
Does anyone know what the in
html = " is use for or what other
codes do in the -1 place?
Thanks,
Roger
At 02 NOV 2000 05:35PM Oystein Reigem wrote:
R,
Seems you first need to read up on dynamic arrays:
X=Y
appends another element to @FM-delimited array X.
Unless the variable X is null ("")
X=Y
is the same as
X := @FM : Y
or, equivalently,
X=X : @FM : Y
If X is null
X=Y
is the same as
X=Y
I think
X
is the same as just
X
What you do in your Inet procedure is to gradually build up an html page in your Html variable and finally return the value of that variable. An html page normally consists of lines, e.g,
The title of my page
Some page content
You can either have Html as a dynamic @FM-delimited array with one line in each element. (Which is exactly the same as a long string consisting of the lines with the @FM character between them.) That's presumably what you do. You can also have CR LF (Char(13) and Char(10)) between the lines instead of @FM.
With
Html=Return this text"
you append another line in your html page. If some browser won't display that line that can be because there's a syntax error earlier in the html of the page. When a different browser still does display the line, that can be because that other browser is more tolerant towards syntax errors and manages to get down on its feet again past the problematic point.
If you do
Html=Return this text"
you just erase all earlier content of your html page, so it's no wonder the page displays. (Even if you've erased a lot of html codes at the same time.)
- Oystein -
At 10 NOV 2000 03:22PM Leigh Tingle wrote:
You are on the right track. Simply build your variable and then before saving it to a disk file do this:
linefeed=\0A\
convert @fm to lf in varhtml
oswrite varhtml to '\revsoft\oinsight\html\another.htm'
Regards
Leigh….
At 12 NOV 2000 08:34AM Oystein Reigem wrote:
Leigh,
Well, I certainly hope I'm on the right track, because in contrast to R I've already succeeded in making an OI web app.
![]()
But why just LF?
(Btw - in my own app I return my html to the client and don't write it to a file.)
- Oystein -