Re: CGIDEV + AJAX
Jay <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <[email protected]> |
Found it.... sigh... Forgot: nbrVars=zhbgetinput(savedquerystring:qusec); > On 07/14/2021 9:28 AM Jay <[email protected]> wrote: > > > I'm following your example (except with CGIDEV2). > > What does the template file look like for the return coming from the program called in the AJAX operation? > > I've got the RPG using: > { "smn":"WHO?","name":"Unknown" } > > The kicker is that the #smn=zhbgetvar('smn'); does seem to be returning a value from the AJAX call: > > return $.ajax({ > type: "POST", > url: url, > data: formData, > dataType:"jason", > success: function(res) { > console.log(res); > document.getElementById("smnajax").innerHTML=res.name; > }, > error: function(errMsg) { > document.getElementById("smnajax").innerHTML=errMsg; > } > }); > > > > On 07/13/2021 5:16 PM Brad Stone <[email protected]> wrote: > > > > > > I have one here: > > https://www.fieldexit.com/forum/display?threadid=10 > > > > And the entire forum may have more info: > > https://fieldexit.com/forum/thread?groupid=Prog&forumid=WEB > > > > On Tue, Jul 13, 2021 at 4:08 PM Jay <[email protected]> wrote: > > > > > Has anyone come across a really good example for doing CGIDEV2 and RPGLE > > > with AJAX calls? > > > > > > -- > > > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > > > list > > > To post a message email: [email protected] > > > To subscribe, unsubscribe, or change list options, > > > visit: https://lists.midrange.com/mailman/listinfo/web400 > > > or email: [email protected] > > > Before posting, please take a moment to review the archives > > > at https://archive.midrange.com/web400. > > > > > > > > -- > > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list > > To post a message email: [email protected] > > To subscribe, unsubscribe, or change list options, > > visit: https://lists.midrange.com/mailman/listinfo/web400 > > or email: [email protected] > > Before posting, please take a moment to review the archives > > at https://archive.midrange.com/web400. > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.