There are hundreds (if not thousands) of articles out there on Ajax.  Many of which are better than the one by Bob (No offense).  I highly recommend you check out some other articles that will help give you a better idea of how to accomplish what you need.  Here is a link to an Ajax tutorial that got me started:

http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJAX-Tutorial.html


A word of warning: the page has a gray background with white text.  Why Ramus choose such a god awful color scheme, the world may never know.  For the sake of your vision, I recommend copying and pasting the article into the text editor or your choice.




"K. Schreur" <[EMAIL PROTECTED]>
Sent by: [email protected]

03/07/2006 12:04 PM

Please respond to
[email protected]

To
[email protected]
cc
Subject
Re: [Easy400Group] Re: AJAX and iSeries





From what I've seen and read, you don't write back HTML. You send back
either text or XML that is parsed by the JS in the original page. That JS
also updates the existing page. So, when you send a response back from your
CGI program, you send it back out with the same concepts that we use for
CGI, but the parsing work is the extra steps required in the JS. Bob Cozzi
was supposed to write a follow on article to address the parsing side of it.
I do not know if he has yet.


----- Original Message -----
From: "andrew_david_kerr" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 07, 2006 11:59 AM
Subject: [Easy400Group] Re: AJAX and iSeries


> Had a look at Bob's article and at the IBM links, which seem reasonably
> clear. The only thing that I am struggling with is how this fits in
> with CGIDEV2, and how we avoid refreshing the whole page, which is
> exactly what the whole strategy seeks to avoid.
>
> If we have a simple example: a page is served (a cgi call) which has a
> input field for a customer number. We define a field alongside which
> will serve to display the name if the customer exists or an error
> message if the customer is not found. So all HTML, including all our JS
> for Ajax is defined in the one html file.
>
> For the input field, on a defined event we fire our AJAX routine,
> passing a CGI call address with the customer number as parameter. I
> want to validate this against the iseries db: does this code have to
> exist in our original pgm that was called? How do I write the HTML
> without erasing the existing page, in terms of the sections? In a
> previous message and example in the group, it looked to me as if the
> whole page was being rebuilt.
>
> Hopefully I have explained myself sufficiently clearly!
>
> Any pointers please?
>
>
> --- In [email protected], [EMAIL PROTECTED] wrote:
> >
> > there are 3 articles on IBM site (free registration required):
> >
> > Mastering Ajax, Part 1: Introduction to Ajax:
> > http://www-128.ibm.com/developerworks/web/library/wa-ajaxintro1.html
> > Part 2: http://www-128.ibm.com/developerworks/web/library/wa-
> ajaxintro2/
> > Part 3:
> > http://www-128.ibm.com/developerworks/web/library/wa-ajaxintro3/?
> ca=dgr-lnxw01MasterAJAX3
> >
> > I just received (yesterday, from Amazon) "Programmer to Programmer -
> > Professional Ajax" - a real eyes opener, highly recommended!
> >
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>





Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/Easy400Group/

<*> To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/








SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer


YAHOO! GROUPS LINKS




Reply via email to