Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Basically I would like to host an application on a different server than my SharePoint server. Using the managed client object model I have been able to access data on my SharePoint server, but I'm confused about whether I can do this using the javascript Client object model.

If I can, where do I get the sp.js file? Am I right in assuming that this is where functionality for the javascript client object model is contained?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

In your case, you might be constrained by the same origin policy. It prevents JavaScript from accessing information that resides in a different domain (http://domain1.com vs. http://domain2.com, or http://site1.domain.com vs. http://site2.domain.com).

There are ways to work around this rule, but still it is an important constraint.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.