× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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:


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 RPGLE
with AJAX calls?

--
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.


--
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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.