I appreciate the quick responses on this.  However, I guess I have failed to 
get my problem across.
My AJAX works great and I get the responses back to my web page correctly.  
I'll try again.
 
The URL that is submitted by XMLHttpReponse runs a CGI program.  In a CGI 
program, I will sometimes make a CALL to another CGI program.  If I do this 
from a POST using a form submit or a link, the called pgm will create a new web 
page correctly.  If I do that same call from the AJAX submitted request, the 
call does not work.  It doesn't even run as far as I can tell.  That is why I 
questioned if they ran in the same server.
 

________________________________

From: web400-bounces@xxxxxxxxxxxx on behalf of Joe Pluta
Sent: Tue 8/29/2006 11:51 AM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] XMLHttpRequest



Hi Joe!

Ajax is a little bit counter-intuitive in some ways.  First off, the
requests always go back to the same server.  In fact, when you format an
Ajax request, you leave off the "http://server <http://server/> " portion of 
the request; it
assumes it will be going back to the original server.

I have had good luck formatting my response in such a way that it shows up
in the browser if I invoke it directly.  That is, whatever URL I expect to
pass to the XMLHttpRequest call, I test that URL by simply typing it into
the address bar of my browser (I prefix it with the http://server/ portion).
That allows me to make sure each request is working correctly.

If you can do that and your XMLHttpRequest still isn't working, then I'm not
sure what the problem might be.

Joe

From: Joe Harriman

  Can anyone tell me where/which server the XMLHttpRequest is processed on
the i5?   I have been creating web pages with CGI since the last century
and just recently got into AJAX.  I know I'm a little late.  Sometimes, I
currently do a call from a CGI program to another CGI program and my new
page will kick off.  I try to do the same with AJAX and my call does not
work.  This leads me to believe that the i5 is running these two requests
in different servers.


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