Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Domain Scripting... AGAIN

Status
Not open for further replies.

Geee

Programmer
Apr 23, 2001
253
GB
Hi guys.

Firstly, I know that AJAX does not allow async page requests to a different domain, and I understand why. My question relates to which domain is classed as the original domain. Is it the domain the pages is loaded from, or is it the page the JAVASCRIPT is loaded from. This may seem like an inane question, but I notice you can use things like googlemaps on your website, and I'm presuming that google don't expect you to set up an apache redirect, or a proxy type php script on your server.

I currently have a bespoke hardware which contains a browser that sends a soap request to a server, to initiate a data stream to the said hardware. This all works great, however, I have no control over the HTML or PHP on the server. What I want to do is to have a second server that handles the HTML and PHP, leaving the data server to just concentrate on streaming the data to the clients. However, as I have stated because the soap request is done using AJAX, this is proving trickier than I first imagined. The SOAP API simply takes the originating IP address as the address to stream to, so proxying is out of the question.

However, I CAN upload some custom javascript to the data server. I was thinking that if the javascript that performed the AJAX request was loaded from the same server as the request was being directed, everything might be OK. Testing has been inconclusive so I was wondering if anyone knew the hard and fast rules in this situation, or may have a better suggestion to accomplish this (maybe) impossible task!

Thanks again.

G

-Geeeeeeeeeeeeeeeeeeeeeeee-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top