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



Charles,

There are tons of examples on the Web. Bob produced one not too long ago ( http://www.mcpressonline.com/mc/.6b33f863 )

It depends how comfortable you are with HTML, Javascript and basic web concepts. I found it pretty easy to build an AJAX application and put one together, last minute, for my Common presentation. I think you will find the server-side stuff the biggest challenge. I did my stuff with Java Servlets but CGILIB or CGIDEV2 would be alternatives. The "magic" with AJAX is that the mechanism for requesting and retrieving the server data is fairly well encapsulated in just a few Javascript methods so the real work is on the server side application that receives, processes and returns the data. There are plenty on this list that can help you with that. AJAX is pretty straightforward.

I'd start with the server side routines that will take the data you submit, process it and return the "history" records. At that point the AJAX side is pretty simple in calling the XMLHttpRequest and response methods.

Pete

Wilt, Charles wrote:

Bob,

Ajax was an option I was considering, I know of it and have an idea of
what it can do, but I've never worked with it.

Any recommendations on where to start?

Thanks,

Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Bob Cozzi
Sent: Wednesday, April 05, 2006 12:31 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] How do I create a web page that....

I'm teaching a class on AJAX and RPG at RPG World in May. You may find something you can use in that class, if you're attending In general, you send the first item and qty to the server/cgi rpg program and get XML back from it. Then, using JavaScript, you write to a <DIV> or <SPAN> to insert a new line of text--probably with the item, qty, description, and price.
Then you position the cursor into the entry box.
You can use the OnBlur() function or add an "Enter" button to the input form, which ever you prefer. I just finished some AJAX consulting with a software house that does hospital software for the AS/400 and we were able to create a "Google Suggests"-like interface by GUI-izing their old green screen apps with a web browser interface using AJAX, RPG IV and my CGILIB (in xTools). Ajax is just a collection of related technologies, not a product, so you can do
the interface without CGILIB or CGIDEV2.

-Bob Cozzi
www.RPGWorld.com


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf
Of Wilt, Charles
Sent: Wednesday, April 05, 2006 10:03 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] How do I create a web page that....

I'd like to create a web page that allows a user to key in an item
number and a quantity.  When they hit submit, I'd like to clear the
input boxes to allow the next item to entered and output the just
entered item underneath the input boxes.

In other words, the bottom of the web page will be a history of the
items entered on the web page during the current session.

The question is what's the easiest/best way to save and output the
history?

I can use CGIDEV2, Net.Data or Websphere but I'm new to all of it and
not sure which environment to choose or how to accomplish outputting the
history.

I could of course save the history someplace in the database, but then
I'd have to deal with figuring out when/how to delete the records and
determining current session vs. new session.

Thanks for the ideas,

Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121


--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




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.