|
In a CGI library the AJAX pieces really need to be sent as XML. So you need to build the XML using whatever you want. I like to do it right in the code itself (using RPG IV operations) because in V5r5 IBM is adding "create XML" to the language--so why bother incorporating a tool to do it today--creating XML is pretty easy anyway. Then you need to write to the stdout device. I know all the 3 CGI libraries offered today (CGIDEV2, CGILIB in xTOOLS, and eRPG's SDK) include wrappers for writing to stdout. The API itself is pretty easy as well so the tools' wrapper procs aren't strictly necessary. I also use the free iSockets library/service program. It does a lot of basic CGI API wrapping so you don't need the above tools at all. But you have to do the coding in RPG IV rather than use the tool boxes. But iSockets does have a cool XML encoder so that the xml is properly escaped for you. www.isockets.com I wrote iSockets by the way. -Bob On 9/20/06 2:34 PM, "Shane_Cessna@xxxxxxx" <Shane_Cessna@xxxxxxx> wrote:
Has anyone successfully used AJAX in a CGIDEV2 program? I'm curious as to how to get an RPG program to work with AJAX... Shane
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.