Then it looks like you understand exactly what you need to do. Change your ajax call from retrieving a static JSON file on the ifs to retrieving data from a web service. The web service on the iSeries can be anything that can serve up a web page. Lots of possible ways have been mentioned in this thread. Chose one and start exploring it. You have an RPG background, so the quickest way to get started would probably be to download powerEXT and use that. Install it, and modify one of the examples to return your data.




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Booth Martin
Sent: Wednesday, December 13, 2017 4:29 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: getting data from the iSeries to a web page

Exactly where I am at. Exactly what I did. if you look at
ventures.martinvt.com you will see it, using JSON data and javascript. There
is a JSON file there too. I would like to replace that JSON file with meanigful
request for data from a web service based on an iSeries.


On 12/13/2017 4:05 PM, Evan Harris wrote:
Hi Booth

I feel you would get a bit of benefit out of forgetting the IBM i side
of things temporarily and go about building a web server, web page etc
in any of the flavours you can manage it on a PC. Just get a book that
tells you how to build a test LAMP stack on your PC (or RoR or... or
whatever floats your boat really) and try learning the terminology and
pieces without trying to fit them back into your RPG scenario.

When you feel like you are on top of what's gogin on and all the
pieces you will be able to come back to the RPG/IBM i side of things
and it should make more sense how it fits together. If nothing else
you will have a fun detour where you will learn some stuff.

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.