Steve,
 
The best way to achieve this result is to use XMLHTTPREQUEST from your _javascript_. 
 
You simply send a request to a CGI program (e.g. getcust) which then sends back the details you need in XML (or XHTML).   Your _javascript_ then updates the INNERHTML of a DIV with the XHTML.
 
There are many examples of using XMLHTTPREQUEST on the web - in your case, it is best to look for asynchronous examples.  You shouldn't need iSeries examples as there is nothing unique about using it with CGIDEV2.
 
Justin.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]On Behalf Of corbtech
Sent: Friday, November 04, 2005 5:50 AM
To: [email protected]
Subject: [Easy400Group] Dynamic HTML

I have a form with several input fields and would like to have
information updated on the window from the AS/400 as the user is
entering data, before the form is posted.

For example, the first field is a customer number.  As soon as the
customer number is entered (ie using the onBlur event) I would like to
display the customer's name and address on the screen while the
operator is still entering other details on the form.

One way of doing this would be to have this form in a visible frame. 
When the onBlur event occurs, the location of a hidden frame is
updated.  (ie )  When the hidden frame is loaded, it can update the
details on the original form with information obtained from the AS/400.

Now even though this approach appears to work, it does seem an overly
complex way of achieving the result.  Is there an easier way of making
this happen?

Steve





YAHOO! GROUPS LINKS




Reply via email to