This is a migrated thread and some comments may be shown as answers.

Cross domain AJAX Request

1 Answer 44 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gabriel Beauchamp
Top achievements
Rank 2
Gabriel Beauchamp asked on 19 Mar 2008, 04:06 AM
Is it possible to do cross domain ajax requests?

I have 2 servers. One has all my image and video files and the other has the website pages.

I would like to be able to upload files to my file server and when finished send a signal to my website so that it knows it is done.

Is this possible?

My video server is something like this: videos.myDomain.com
My website is: myDomain.com

videos.myDomain.com and myDomain.com point to different servers.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 19 Mar 2008, 08:48 AM
Hello Gabriel Beauchamp,

As XMLHttpRequest object is limited to only current domain, one possible solution will be to use local webservice to call local proxy class which in turn calls the remote webservice.

For example, lets suppose you have a webpage(A) which should call a webservice B (located in different domain).
Therefore you should create a local webservice(C) which calls remote webservice B. Then from webpage A you can call the local proxy webservice(C).

Kind regards,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Gabriel Beauchamp
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Share this question
or