× 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.



Thanks Matt. I didn't use my template for this one. Just testing at this
point.

Thanks,

Mark

Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com


                                                                           
             "Haas, Matt"                                                  
             <Matt.Haas@thomso                                             
             n.com>                                                     To 
             Sent by:                  "Web Enabling the AS400 / iSeries"  
             web400-bounces@mi         <web400@xxxxxxxxxxxx>               
             drange.com                                                 cc 
                                                                           
                                                                   Subject 
             02/28/2005 03:31          RE: [WEB400] CGIDEV2                
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             Web Enabling the                                              
              AS400 / iSeries                                              
             <web400@midrange.                                             
                   com>                                                    
                                                                           
                                                                           




Mark,

The very first line that you need to send back is the content-type header.
If you send back anything else first, you'll get a 500 error.

Matt

-----Original Message-----
From: MWalter@xxxxxxxxxxxxxxx [mailto:MWalter@xxxxxxxxxxxxxxx]
Sent: Monday, February 28, 2005 3:25 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] CGIDEV2


Sorry,

I should have been more specific. The hard coded version worked. The CGI
program did not. It was because I was missing 'type="text/Javascript" '.
But it still doesn't help. I'm trying to develop an iterface to allow
documents to be opened by users that do not have the IFS authority to open
the document. I'm trying to use the QSYSETPT API, but it seems that the CGI
program doesn't actaully open the document. It' builds it, then, I'm
assuming, it hands it off another process.

Any suggestions?

Thanks,

Mark

Mark D. Walter
Senior Programmer/Analyst
CCX, Inc.
mwalter@xxxxxxxxxx
http://www.ccxinc.com



             "Brad Stone"
             <brad@xxxxxxxxxxx
             m>                                                         To
             Sent by:                  Web Enabling the AS400 / iSeries
             web400-bounces@mi         <web400@xxxxxxxxxxxx>
             drange.com                                                 cc

                                                                   Subject
             02/28/2005 03:18          Re: [WEB400] CGIDEV2
             PM


             Please respond to
             Web Enabling the
              AS400 / iSeries
             <web400@midrange.
                   com>






One is "dynamic" and one is static.

But, since you're hardcoding the URL, they're both pretty
similar in that sense.

If the URL can change depending different circumstances,
then the 2nd method would be the way to go.

Brad

On Mon, 28 Feb 2005 12:24:10 -0500
 MWalter@xxxxxxxxxxxxxxx wrote:
> Hello all,
>
> Can someone explain the difference between this:
>
> content-type: text/html
> <html>
> <body>
> <script>
> self.location="http://192.168.0.2/reports/sls585p.pdf";
> </script>
> </body>
> </html>
>
> and this:
>
> /$init
> content-type: text/html
> <HTML>
> <BODY>
> <SCRIPT>
> /$data
> /%docname%/
> /$trailer
> </SCRIPT>
> </body>
> </HTML>
>
> Using this program:
>       /copy qrpglesrc,hspecs
>       /copy qrpglesrc,hspecsbnd
>      Hdftactgrp(*no) actgrp(*new)
>
>       /copy qrpglesrc,prototypeb
>       /copy qrpglesrc,usec
>
>      dx                S             10i 0
>      DsavedQryString   S          32767a   varying
>      DhtmlOut          S           1000a
>      DNL               C                   const(x'15')
>
>       /free
>
>
>          getHTMLIFS('/htmlTemplates/docopen.html');
>
>
>          wrtSection('init');
>
>          htmlOut = 'self.location="http://192.168.0.2
> /reports/sls585p.pdf"';
>          updHtmlVar('docname':%trim(htmlOut));
>
>          wrtSection('data');
>
>
>          wrtSection('trailer');
>          wrtSection('*fini');
>
>          *inlr = *On;
>       /end-free
>
> Thanks,
>
> Mark
>
> Mark D. Walter
> Senior Programmer/Analyst
> CCX, Inc.
> mwalter@xxxxxxxxxx
> http://www.ccxinc.com
>
> --
> This is the Web Enabling the AS400 / iSeries (WEB400)
> mailing list
> To post a message email: WEB400@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/web400
> or email: WEB400-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/web400.
>

Bradley V. Stone
BVS.Tools
www.bvstools.com
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




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.