Very cool! Just when I thought I was going to be watching "The Office" tonight it looks like I will be pounding through this code - btw, thanks for posting the code as that will bring a lot of fruit to the discussion IMO.

Question: So this is obviously using the different fairly direct correlation of 5250 ui components to html ui components (i.e. text field to <input>, etc), but what would be an approach for wanting to render a drop down box as these screens would be based on a DSPF DDS? The one thing that comes to mind is simply having an "indicator" in the stream that would tell a custom ExtJS script to render the data elements as a drop down and also specify how to map the data to the correct input field when it gets back to the server.

Aaron Bartell
http://mowyourlawn.com


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Niels Liisberg
Sent: Thursday, January 08, 2009 2:00 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] Pete's web5250 was->Re: Business Developers was -
Re: IBM Gives RPG Devotees Their Own Café
Gents;



Just to follow up on my idea before Christmas. – to build a JSON AJAX
client for 5250 data.



I have made a simple running prototype so I’m convinced it can be done.



This tiny emulator demo is written 100% in RPGLE, and can be used as
workstation scripting screen scraper prototype.



The current version is simply is using plain HTML, but the real goal -
a more fancy JSON / AJAX providing data for JavaFX or just javaScript
will be super simple to implement.













The prototype is fare from stable and lot of stuff to be done, but you
can give it a try it on:



http://icebreak.org:60000/icecap04.aspx



Login with user: DEMO and password: DEMO – You need to type in
UPPERCASE



… please don’t do anything stupid while you logged on .





The source is available at:

http://demo.icebreak.org/webfiles/icebreak/iceCap.zip







The iceCap.zip contains the following:



iceCap.rpgle.h The prototypes for the client

iceCap04.aspx This is the tiny emulator
implementation
written in RPGLE for IceBreak

scv242.c The iceCap API module that
deals
with all the ugly 5250 stuff

vtTrace.txt A JSON log of a simple session
login
on, CFGTCP etc.





I have used IceBreak as the server (I’m a little biased here) but I
have made the iceCap API reentrant so it can be ported to CGIDEV2 if
anyone will be interested …



The code is a monolith – I know – it’s a prototype – don’t complain…





Best regards


Niels Liisberg
IceBreak Chief SW Architect

System & Metode Technologies
Håndværkersvinget 8, DK-2970 Hørsholm
Phone: +45 70 20 36 10
Fax: +45 70 20 30 11
Direct: +45 45 177 055
Mobile: +45 31 158 861
E-mail: <blocked::mailto:nli@xxxxxxxxxxxxxxxxx> nli@xxxxxxxxxxxxxxxxx
Web: <blocked::http://www.system-metode.com/> www.system-method.com
and <blocked::http://www.icebreak.org/> www.Icebreak.org



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.