|
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
As an Amazon Associate we earn from qualifying purchases.
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.