Well, the simplest and quickest is to implement a request proxy on both sites.
Meaning, you make an Ajax request to your local server, for example
http://site1.com/proxy/some/path?a=1&b=2, which in turn does the
request to the other server (http://site2.com/some/path?a=1&b=2) and
returns the response to your Ajax call.
By adding that proxy on both sites they can communicate freely without
x-site problems :)
Best,
-Nicolas
On Nov 28, 2007 8:22 PM, Martin
<stenderdk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi all
>
> I''m doing some testing to find a way to make two different sites
come
> together ''as one'' ...
>
> So I tried doing an cross-domain ajax-request to the ''other
system'',
> but it (obviously) fails.
>
> Is there any way this can work with prototype?
>
> Best regards
> Martin
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---