|
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 <bvstone@xxxxxxxxx> wrote:RPGLE
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 <tegger@xxxxxxxxxxx> wrote:
Has anyone come across a really good example for doing CGIDEV2 and
mailingwith AJAX calls?
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
listlist--
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
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
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
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: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
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.