Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this plugin work on a plain web app or does it require SP.js? #80

Open
ghost opened this issue Sep 26, 2019 · 18 comments
Open

Can this plugin work on a plain web app or does it require SP.js? #80

ghost opened this issue Sep 26, 2019 · 18 comments

Comments

@ghost
Copy link

ghost commented Sep 26, 2019

It appears this plugin is only for use on a page served up by SharePoint or a page with SharePoint JS libraries already available. In other words, is this plugin dependent upon the SP JavaScripts? I don't see that mentioned anywhere on the home page. Thanks!

@sympmarc
Copy link
Owner

@Katydude - I wrote most of this library before SP.js even existed. It works with the old, deprecated SOAP (asmx) Web Services.

If you are on a version of SharePoint greater than 2010, you should really be using REST rather than SOAP. What version are you in and what are you trying to accomplish?

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@sympmarc
Copy link
Owner

The real question here is what version of SharePoint you're working in and what you are trying to accomplish. The answers will vary accordingly.

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@sympmarc
Copy link
Owner

I would suggest looking at PnPjs rather than trying to dig into the bowels of SP.js. It's sort of like the SPServices for REST - and many other things.

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@sympmarc
Copy link
Owner

It has server side dependencies in that it helps you use the REST endpoints, but it does work with 2016.

@sympmarc
Copy link
Owner

I'm not sure what you mean about needing "a very pristine development environment to get it all to work". What blockers are you seeing?

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@sympmarc
Copy link
Owner

Yeah, you have to do sp.setup. That's a cost of entry.

You can also use the SharePoint Framework (SPFx) on 2016. This would make your solution future-proof in that it's the development platform going forward.

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@sympmarc
Copy link
Owner

sympmarc commented Sep 27, 2019

Right on the Getting Started page. :)

@ghost
Copy link
Author

ghost commented Sep 27, 2019 via email

@sympmarc
Copy link
Owner

SPFx has been out for at least two years now. We build complex solutions with it all the time. You should spend some time out in the community to keep up with what's been going on!

@ghost
Copy link
Author

ghost commented Sep 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant