I have an ASP page served from an IIS server. If the validation of a customer number is required on this page (for example) and I already have a AS400 CGI validation routine for that, is there a way of using AJAX to access the 400 to call this routine?
Searching through the net, I find suggestions that this should be impossible; due to security constraints apparently the XMLHttpRequest object can only access pages that are served from the same host that served the first page.
However my test actually worked fine, although I got the pop-up from IE asking since this was a call to another server did I wish to allow it? Clicking ?yes? meant the CGI program was called and I got back my response fine. I then tried to add my 400 into the sites to be trusted within IE (to avoid getting the pop-up), but then got no pop-up but the ajax call failed with ?access refused? in the javascript.
So maybe it is impossible? Or are there Apache directives that come into play? Any ideas anyone?
Thanks
Searching through the net, I find suggestions that this should be impossible; due to security constraints apparently the XMLHttpRequest object can only access pages that are served from the same host that served the first page.
However my test actually worked fine, although I got the pop-up from IE asking since this was a call to another server did I wish to allow it? Clicking ?yes? meant the CGI program was called and I got back my response fine. I then tried to add my 400 into the sites to be trusted within IE (to avoid getting the pop-up), but then got no pop-up but the ajax call failed with ?access refused? in the javascript.
So maybe it is impossible? Or are there Apache directives that come into play? Any ideas anyone?
Thanks
Comment