In regards to the Personal Edition of Visual COBOL - what features are supported for CGI programs?
I have found the EXTERNAL-FORM and EXEC-HTML facilities.
EXEC HTML errors out for me. Using the command line so I can more easily copy the results into this note, here is an example:
This source code:
EXEC HTML
<HR>MESSAGE VALUE = [:O-MESSAGE]<br>
END-EXEC
Causes this error:
paul@LNX1:~/web/cobsrc> cob -xo ../bin/CGI001 CGI001.cbl
CGI001.o: In function `CGI001':
CGI001.cbl:(.text 0x41d): undefined reference to `HTML'
The External Forms stuff works pretty well, but it feels a little old. Sending the entire form back each time a request happens isn't all that efficient either.
Has anyone gotten this to work with say, XML or modern Ajax based screens? If so, do you have an example you would be willing to share? I normally send XML from Ajax screens and expect an XML reply.
Yours,
-Paul




