How to get C5 overhead into php file called by JSONP request from another domain?
Permalink
Hello there,
so i have two C5 Websites on two different domains, and i need some Page Data from one Website to be available in the other website. Do to so i send an AJAX JSONP Request from one domain to the other. It's all good , the request works and i can send some data. Until the point when i want to use some Classes like Page or any other Concrete/Core Class. Implementing with namespaces doesn't work.
I'm afraid i don't understand XR Requests 100%, so maybe it's just impossible to do so, i wanted to ask you guys if you ran up on such tasks which you needed to solve.
I figured it would be possible to include all the classes manually into the file called by the jsonp request to make use of their methods, but that would be a very ugly solution.
so i have two C5 Websites on two different domains, and i need some Page Data from one Website to be available in the other website. Do to so i send an AJAX JSONP Request from one domain to the other. It's all good , the request works and i can send some data. Until the point when i want to use some Classes like Page or any other Concrete/Core Class. Implementing with namespaces doesn't work.
I'm afraid i don't understand XR Requests 100%, so maybe it's just impossible to do so, i wanted to ask you guys if you ran up on such tasks which you needed to solve.
I figured it would be possible to include all the classes manually into the file called by the jsonp request to make use of their methods, but that would be a very ugly solution.