Doug,

I had exactly the same problem understanding the relation between the 
html files, and placing the use of the concept within CGIDEV2. 

> What page do you reference in your gethtmlifs procedure in ajax2??

callp gethtmlifs('/cgiprd/ajax2.html')

K. Schreur is correct. Maybe it is easier to explain in the sense 
that what ajax2 returns is not really 'html', it is just a text string
(you can see this if you stick a js 'Alert' box in the updatePage).  
And it is the javascript in ajax1 that takes that string, parses it 
and updates the ajax2 page dynamically in the updatePage function. In 
the 'onlamp' example, you will see that they build a whole table 
dynamically for the innerHTML. 

--- In [email protected], "K. Schreur" <[EMAIL PROTECTED]> wrote:
>
> I think you are missing a small point. When the page from Ajax1 
sends the request, the program Ajax 2 is actually sending his html 
back to the javascript on page ajax 1 that is waiting for it. The 
javascript on the ajax 1 page is waiting for the reply through the 
XmlHTTP.onreadystatechange. Once it receives it, the other javascript 
is then called to update the existing ajax 1 html page. 
>   ----- Original Message ----- 
>   From: dp 
>   To: [email protected] 
>   Sent: Monday, March 13, 2006 3:55 PM
>   Subject: Re: [Easy400Group] Re: AJAX and iSeries
> 
> 
>   Thanks a lot for the example.  I still have one question.  I 
understand how AJAX2 gets the customer # and sends back the 
response.  I guess I don't understand how the html stuff on 
ajax2.html gets put on ajax1.html's page.  What page do you reference 
in your gethtmlifs procedure in ajax2??
> 
>   Thanks, Doug 







 
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/
 


Reply via email to