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

Is it only intended for use "inside" SharePoint?

Using the .Net/C# client object model I can execute applications on my local machine and access a remote SharePoint server.

I can only find examples for the JavaScript object model that use it on the same server.

There is a limitation in JavaScript about the same origin policy, but is that the only limitation of why JavaScript does not work remotly?

If so, what is the best way, from a Windows 8 RT

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The JSOM provided by SharePoint is indeed intended to run only on SharePoint for custom solutions (or content editor web part content) within SharePoint. The required authentication, context setup, and core JS is provided on SharePoint pages by SharePoint.

As far as using JavaScript against a remote SharePoint site, you'd have to access SharePoint's web services. My answer to your other question should help with that: Best way to access SharePoint (online) from a Windows 8 RT/Metro application?

share|improve this answer
    
Thank you. A lot :) –  Development 4.0 Mar 8 '13 at 18:08

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.