Thanks for the reply, it's essentially what I thought we had to do, I have it working now.
--- In [email protected], [EMAIL PROTECTED] wrote: > > We are working on an application that is utilizing Ajax right now. My > HTML for the CGI program called using XmlHttpRequest is very simple. > > <!-- Sec_top --> > Content-type: text/html > > <!-- Sec_end --> > /%jsdata%/ > > > Essentially, I update /%jsdata%/ with whatever data I am sending back to > the browser. So, my code looks something like > > D RESPONSE S 50A > /free > > // process request and set response field > > exsr SendResponse; > > begsr SendResponse; > > wrtSection('top'); > updHtmlVar('jsdata':response); > wrtSection('end'); > wrtSection('*fini'); > *inlr = *on; > return; > > endsr; > > > /end-free > > Hope that helps. > > > > > "stevem3940" <[EMAIL PROTECTED]> > Sent by: [email protected] > 01/25/2006 07:11 PM > Please respond to > [email protected] > > > To > [email protected] > cc > > Subject > [Easy400Group] CGIDEV2 & AJAX (Xmlhttprequest) > > > > > > > Has anyone experimented with using the AJAX - Xmlhttprequest functions > with the CGIdev2 routines that would be willing to shed some light on > the subject? Conceptually I understand the AJAX request but my > confusion has more to do with the CGI response side on the 400. > > When we use the CGIdev2 routines we are writing sections to an entire > web page but all I require, at least for testing, from the Iseries is > a simple response value of "yes" I found something or "No" I didn't. > > Is it just a matter of using Zhbgetinput to retrieve the value from > the input string then using updhtmlvar to update the response variable > then a wrtsection for the response data and a wrtsection(*fini)?? > > Any help would be appreciated. > > > > > > > > Yahoo! Groups Links > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Easy400Group/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
