Reputation
5,187
Next privilege 10,000 Rep.
Access moderator tools
Badges
3 14 28
Newest
 Yearling
Impact
~385k people reached

41m
comment Replacing SOD with fetch (handling JS library dependencies - *in the future*)
Wouldn't fetch be restricted by Same Origin Policy? And thinking about future, isn't eval (by default) disallowed in Content Security Policy?
Apr
23
comment How do we fetch data through REST service which hosted in azure from SharePoint site which in office 365?
Actually, creating an app would work, could use Web Proxy.
Apr
11
comment Hide a specific list from 'View All Site Content' using JSOM/CSOM?
I don't think you need to call ctx.load.
Apr
11
comment Hide a specific list from 'View All Site Content' using JSOM/CSOM?
I don't think your code will do anything, as the default value for Hidden should be false. But using true will hide the list (while still letting it be accessible with a direct link).
Apr
8
comment GetItems with CAML against lookup on online throws “list view threshold”-error
@EricAlexander Isn't it the field which is indexed, and not the query part? And if <Contains> is not indexed, why does it work with Title?
Apr
8
comment GetItems with CAML against lookup on online throws “list view threshold”-error
I'm not sure how that link helps? You mean the core problem is on a higher level (e.g., structural, search, etc)? I see QueryThrottleMode is mentioned, but I don't think this works with CSOM (it's for SPQuery, not CamlQuery).
Apr
8
comment GetItems with CAML against lookup on online throws “list view threshold”-error
I'm not sure how to explain it any better. But I've thrown together a quick example for you here: gist.github.com/eirikb/8e71c5cb31b4d64f779cbcd7b3b06692 It's using JSOM, whilst I actually use CSOM, but it's the same result.
Apr
8
comment GetItems with CAML against lookup on online throws “list view threshold”-error
Yes I also need a View, since I use CSOM. Sorry I should have mentioned this, but since I mention my first example works it was proof enough the surround bits are in place.
Apr
8
comment GetItems with CAML against lookup on online throws “list view threshold”-error
It works if the list has less than 5000 items, so I think works.
Apr
8
comment client-side REST API call across domain (site collection)
You are probably referring to host-named site collections? The default is path-named I think, which is SOP. We have yet to see any example URL from OP, so it's hard to tell what his setup is. I'm not sure what your example will help with, I'm guessing you refer to jQuery, but CORS is enabled via headers from server reply.
Apr
7
comment client-side REST API call across domain (site collection)
Another site collection should be within Same Origin Policy, so you should not get problems with cross-domain. Make sure it's the same schema (http/https), host (including subdomain) and port.
Mar
17
comment Displaying a document library from top level site Error
That is true. But as I said using XsltListViewWebPart cross-SPWeb will only work in 2010, not 2013 (I don't know what version you use). If you have 2013 you could use third party component, or make one yourself.
Mar
15
comment Displaying a document library from top level site Error
Are you trying cross-site adding of a XsltListViewWebPart? If you use 2010 that would work (if you hack the references), in 2013 however I don't think it works at all. How about using an iframe?
Feb
19
comment How to query data on app web from host web
So simple I didn't even think about it. Thanks a bunch :D Note to reach the API I had to do this: /MyWeb/MyAppWeb/_api/Web/....
Dec
8
comment Getting the Timezone in Regional setting using javascript
@IMTheNachoMan Didn't seem like an easy task. I have updated the answer for 2010, at least what I was able to find.
Nov
18
comment Bundle SharePoint JavaScript files inside SharePoint hosted app
@AndersAune Nice. Thanks. I'm currently leaning against keeping the setup I have. But I don not trust the location of MicrosoftAjax, be it the hive or the cdn, so that file I will bundle with my app (separately from my app.js)
Nov
17
comment Bundle SharePoint JavaScript files inside SharePoint hosted app
@AndersAune I didn't know that _spPageContextInfo is used, that is kind of bad for us. However everything works so far, on both O365, and on-premise 2013 (several versions) and 2016. Our index looks like this.
Nov
17
comment Bundle SharePoint JavaScript files inside SharePoint hosted app
@DannyEngelman The scripts are only client side scripts, libraries that can be changed externally in any case, be it be re-evaluating or overriding the prototype. The app.js-file is in any case bundled with the app, so it can not be changed after deploy, which in theory makes it safer than pointing to built in scripts which can be changed, even by third party be it on-premise.
Nov
17
comment Bundle SharePoint JavaScript files inside SharePoint hosted app
@DannyEngelman We simply don't use any dynamic loading. Our app has a very light weight index.html page, and we don't need to load anything on demand or asynchronously.
Oct
31
comment How to create ContentType with FieldLinks using REST on O365
I'm not a big fan of "It's not possible", but the question has been out for some time now and your sources are solid. Thanks for the answer =)