× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Member, a blank line is required after the HTML header is sent. In your
case, this is the Content-type header. A blank line in HTML-speak is an
empty line. That is a line with NO data on it... remember we're talking
stream files not source here. So an empty line is a line with no
characters on it at all, hence X'1515' is required after the
Content-type not a single X'15'. It is perfectly safe to put zero, one,
two or ten X'15' after any other lines, because they are consolidated.
The only place you'll need them outside of the Header is in your
JavaScript. That language is pretty much line-sensitive.

Bob Cozzi
cozzi@rpgiv.com
Visit the new on-line iSeries Forums at: http://www.rpgiv.com/forum

> -----Original Message-----
> From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]
On
> Behalf Of Bob Cozzi (RPGIV)
> Sent: Tuesday, September 18, 2001 2:16 PM
> To: rpg400-l@midrange.com
> Subject: RE: HTTP Server Problems.
>
> Do you have your WKRHTTPCFG set up like I described in my other note?
> If not, that may be the reason it isn't showing up in the browser,
> directly, but it doesn't explain the STDOUT problem. That is probably
> because you don't have two X'15' after the Content-type.
>
>
>
> Bob Cozzi
> cozzi@rpgiv.com
> Visit the new on-line iSeries Forums at: http://www.rpgiv.com/forum
>
> > -----Original Message-----
> > From: rpg400-l-admin@midrange.com
[mailto:rpg400-l-admin@midrange.com]
> On
> > Behalf Of Mangavalli, Ramanujam
> > Sent: Tuesday, September 18, 2001 2:00 PM
> > To: 'rpg400-l@midrange.com'
> > Subject: RE: HTTP Server Problems.
> >
> > Bob, I cannot see the member in the browser.
> >
> > -----Original Message-----
> > From: Bob Cozzi (RPGIV) [mailto:cozzi@rpgiv.com]
> > Sent: Tuesday, September 18, 2001 2:24 PM
> > To: rpg400-l@midrange.com
> > Subject: RE: HTTP Server Problems.
> >
> >
> > Can you view the original source member in the browser? It sounds
like
> > your RPG program is piping the source member though to STDOUT
without
> > many/any changes. So why not try looking at the source itself using:
> >
> > http://www.mydomain.com/qsys.lib/mylib.lib/qhtmlsrc.file/mymbr.mbr
> >
> > IF the member shows up then your RPG program probably isn't writing
> out
> > the standard header... Are you first sending Content-type
> text/html\n\n
> > to stdout?
> >
> > Bob Cozzi
> > cozzi@rpgiv.com
> > Visit the new on-line iSeries Forums at: http://www.rpgiv.com/forum
> >
> > > -----Original Message-----
> > > From: rpg400-l-admin@midrange.com
> [mailto:rpg400-l-admin@midrange.com]
> > On
> > > Behalf Of Mangavalli, Ramanujam
> > > Sent: Tuesday, September 18, 2001 1:00 PM
> > > To: 'rpg400-l@midrange.com'
> > > Subject: RE: HTTP Server Problems.
> > >
> > > Folks,
> > >
> > > I modified the code to create a spool file and write the exact
same
> > HTML
> > > that is being written to the Standard Output. I then copied this
> > spooled
> > > file into a database file, downloaded the database file as a Text
> > file. I
> > > then used Front Page to create an HTML page with the same code as
in
> > text
> > > file. This works fine with absolutely no problems. Same goes with
> NS6.
> > >
> > > Still won't show up in the browser when invoked through the
iSeries.
> > Checked
> > > the syntax of the JavaScript. Nothing wrong with that either.
> > >
> > >
> > > -----Original Message-----
> > > From: Phil [mailto:sublime78ska@yahoo.com]
> > > Sent: Tuesday, September 18, 2001 12:52 PM
> > > To: rpg400-l@midrange.com
> > > Subject: RE: HTTP Server Problems.
> > >
> > >
> > > Sounds very much like a javascript problem.  In NS6, they adhere
to
> > > standards much better than in NS4, and did away with their
> propietary
> > > versions of js (ie no backward compatibility).  Is there a section
> of
> > > javascript which determines the browser version, and then
> selectively
> > > executes blocks of code depending on the version?  It probably
> checks
> > for >
> > > NS4 and > IE4 so for NS6 it is executing the NS4 version which may
> not
> > work.
> > > I don't know about js and IE6 but I do know style sheets behave
> > differently
> > > in IE6 than they did in IE5.
> > >
> > > You may want to check the ignite400.org archives because when NS6
> > first came
> > > out there was a lot of discussion about this.  Also, www.w3c.org
may
> > be
> > > helpful to you.  You may also get a lot more help on the web400
> list.
> > >
> > > Phil
> > >
> > > > -----Original Message-----
> > > > From: rpg400-l-admin@midrange.com
> > [mailto:rpg400-l-admin@midrange.com]On
> > > > Behalf Of Mangavalli, Ramanujam
> > > > Sent: Tuesday, September 18, 2001 12:19 PM
> > > > To: 'RPG400-L@midrange.com'
> > > > Subject: HTTP Server Problems.
> > > >
> > > >
> > > > Folks,
> > > >
> > > > I have an HTML member in a source physical file. Upon
> > invocation(from a
> > > > browser), an ILE RPG  CGI program reads this member and writes
> > > > this HTML to
> > > > STDOUT. For some reason, the HTML written is not being displayed
> in
> > IE 5.0
> > > > or NS 6.1. The HTML code has a bunch of Java Script inside.
> > > >
> > > > Just to make sure that the HTTP Server configuration was right,
I
> > wrote a
> > > > program in ILE RPG to write Hello World to the browser. That
> > > > program works.
> > > >
> > > >
> > > > Any help would be greatly appreciated.
> > > > _______________________________________________
> > > > This is the RPG programming on the AS400 / iSeries (RPG400-L)
> > mailing list
> > > > To post a message email: RPG400-L@midrange.com
> > > > To subscribe, unsubscribe, or change list options,
> > > > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> > > > or email: RPG400-L-request@midrange.com
> > > > Before posting, please take a moment to review the archives
> > > > at http://archive.midrange.com/rpg400-l.
> > > >
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > > _______________________________________________
> > > This is the RPG programming on the AS400 / iSeries (RPG400-L)
> mailing
> > list
> > > To post a message email: RPG400-L@midrange.com
> > > To subscribe, unsubscribe, or change list options,
> > > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> > > or email: RPG400-L-request@midrange.com
> > > Before posting, please take a moment to review the archives
> > > at http://archive.midrange.com/rpg400-l.
> > > _______________________________________________
> > > This is the RPG programming on the AS400 / iSeries (RPG400-L)
> mailing
> > list
> > > To post a message email: RPG400-L@midrange.com
> > > To subscribe, unsubscribe, or change list options,
> > > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> > > or email: RPG400-L-request@midrange.com
> > > Before posting, please take a moment to review the archives
> > > at http://archive.midrange.com/rpg400-l.
> >
> > _______________________________________________
> > This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing
> list
> > To post a message email: RPG400-L@midrange.com
> > To subscribe, unsubscribe, or change list options,
> > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> > or email: RPG400-L-request@midrange.com
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/rpg400-l.
> > _______________________________________________
> > This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing
> list
> > To post a message email: RPG400-L@midrange.com
> > To subscribe, unsubscribe, or change list options,
> > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> > or email: RPG400-L-request@midrange.com
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/rpg400-l.
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.