Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Cross domain access blocked
2 replies. Latest Post by Gondor on October 25, 2007.
(0)
exx87
Member
6 points
6 Posts
10-24-2007 4:56 AM |
Hi,
I want to cross domain call a .xaml file from other website (but I don't want to download the xaml file).
Such as,
Silverlight.createObjectEx({ source:" http://silverlight.net/abc.xaml", ...
How can I do that?
WynApse
Star
8456 points
342 Posts
10-24-2007 12:37 PM |
Unless something changed recently, that's not possible.
There have been some other threads about this as well.
-Dave
Gondor
157 points
31 Posts
10-25-2007 10:12 AM |
I don't think Silverlight supports that natively. You could work around this by creating a handler that acts as a simple proxy, performing the 'GET' request for the remote xaml, returning it to your application. Once the proxy is ready, you can set the 'source' attribute to a local file, for example:
source: "/handler.ashx",...