Never checked out AJAX before ... all I can say is WOW.  Pretty cool demos here  ... http://www.backbase.com
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Corry
Sent: Friday, November 04, 2005 10:09 AM
To: [email protected]
Subject: RE: [Easy400Group] Dynamic HTML

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



###################################################################################################

NOTICE:
The contents of this e-mail and any attachments to it may contain privileged and confidential information from Jones Apparel Group, Inc. or its affiliates.  This information is only for the viewing or use of the intended recipient.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited.  If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system.

###################################################################################################



YAHOO! GROUPS LINKS




Reply via email to