Apologize about the vague subject line, but here's the problem statement.
I have a calendar component that allows end users to navigate months and shows events happening in that month. Our design is to run frontend AJAX LSCS queries and parse the JSON result.
The approach works well but we run into cross-domain issues between LSDS and LSCS. We experimented enabling CORS on our IIS7+Tomcat6 environments, but only Tomcat 7+ supports CORS.
Alternatively - we can build an AJAX component that will query LSCS and simply spit out the JSON result. This approach requires hardcoding/passing the componentID. We have upto 20 sites so this approach won't really work.
Link: /t5/LiveSite/ajax-vs-page/m-p/203703/highlight/true#M11409
How would you handle this?
Is there a way for a .page to output JSON? That may be easiest.
Environment: Livesite 7.3.2, on IIS 7 servers.