Reputation
5,035
Next privilege 10,000 Rep.
Access moderator tools
Badges
3 12 26
Impact
~348k people reached

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 =)
Oct
27
comment Get Checkbox status
@SaMolPPp by capture do you mean inside PreSaveAction? This comment section is getting out of hands, perhaps you could start a chat?
Oct
18
comment Get Checkbox status
@SaMolPPp Yes, given that the selector is correct
Oct
18
comment Get Checkbox status
@SaMolPPp why would you need document.ready? It's not like the form isn't done loading when the users tries to save
Oct
14
comment Programmatically create workflow with JavaScript, JSOM and SP.WorkflowServices.WorkflowServicesManager
Dude! Thanks, it works, awesome! All I had to do was to add definition.set_restrictToType("List");definition.set_restrictToScope(targetList‌​Id); to my original code. Doesn't seem to need new SP.Guid(..), at least not on online, also the Id will be loaded when I load the whole definition. Seems you are correct about the newlines in XAML
Oct
13
comment Relative links in client web part for https breaking
Using JSOM should be straight forward. If you are reading from host web remember to use SP.AppContextSite. Also remember executeQueryAsync ends up in an asynchronous callback, which will be outside of the $digest loop, so then you either have to use $q to make ClientConext use promises or use $apply, or $timeout etc..
Oct
13
comment Relative links in client web part for https breaking
Is the blog external? If internal can't you use REST, and if it is external either use normal AJAX (if it supports CORS or JSONP), or use web proxy
Oct
13
comment Relative links in client web part for https breaking
You pull data with Web Proxy?
Oct
9
comment Create a Current Date and Time Variable in SharePoint Designer 2013
I'm also working against Online, so I can't see the data being passed. And I don't know how to "dump" response headers to history list. I can however tell you I got a count of 18 headers
Oct
9
comment Create a Current Date and Time Variable in SharePoint Designer 2013
Could you please elaborate? I'm facing the same problem and I can't find any way to get the current date and time from server. The "Today" will give date, not time. I'm currently trying to do something like this: sharepoint.stackexchange.com/a/130179/627 , but in Designer workflow I get that Date can't be read as string (or converted to DateTime).
Sep
14
comment Script Editor Web Part not recognizing Jquery
Do you add script tag with jQuery reference after the code above? Also, could some other script use the window.$ variable - have you tried with window.jQuery?
Sep
14
comment _api/web/lists/ returns all the lists including system generated
@rahul-patil is the default yes, I think it would be bad if the API was hiding elements based on "friendlyness". If you want lists for uploading you probably want document libraries, to get only libraries try $filter=BaseType eq 1. To only get document libraries specifically try $filter=BaseTemplate eq 101, but you'd also want libraries such as Picture library, which is 109. Catalogs are libraries, so you should probably combine with my filter above
Sep
13
comment _api/web/lists/ returns all the lists including system generated
@Akhoy I updated the answer. Feel it is not the correct approach, but for some parts it does seem to work
Sep
6
comment Upload a file in Host web using SharePoint Hosted App
Try using appWebContext for load and executeQueryAsync only, so it would be something like var files = hostWebContext .get_web()...; appWebContext.load(files);
Sep
1
comment Sharepoint Service access from android applciation
Is this for SharePoint Online? Do you need to authenticate as a user, or is it sufficient to authenticate as an app?