Cross Domain using SP.RequestExecutor.js

Jan 21, 2014 at 8:56 AM
Hi,

has anyone tried using SPServices in connection with the cross domain javascript library in SP.RequestExecutor.js? Could you use the executeAsync function to call the webservices insead of the different json _API functions?

/Fredrik
Coordinator
Jan 21, 2014 at 1:33 PM
I have not, Fredrik. It would be useful to know what problem you are trying to solve.

M.
Jan 21, 2014 at 5:52 PM
I wanted to use SPServices in an app to do all sorts of things. Since the app is in another domain (and sometimes makes cross domain calls to other site collections), the javascript proxy provided by the SP cross domain library could be very useful. Many things can be done with the built in REST interface, but not everything. And even though it's possible, I like the SPServices syntax better :-)

Some areas where this kind of app could be interesting:
  • Show list items or document templates from another site
  • Create document libraries with specific settings or create other things on the host web where farm solutions aren't possible
  • For a SharePoint Online Scenario where site templates and farm solutions aren't allowed, a configuration wizard can be created as an app
  • etc.