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

Jan
14
awarded  Good Question
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.
Dec
8
revised Getting the Timezone in Regional setting using javascript
Added a small summary for 2010
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.
Nov
17
asked Bundle SharePoint JavaScript files inside SharePoint hosted app
Oct
31
accepted How to create ContentType with FieldLinks using REST on O365
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
awarded  Famous Question
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
21
answered executeQueryAsync doesn't follow success nor fail route
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
accepted Programmatically create workflow with JavaScript, JSOM and SP.WorkflowServices.WorkflowServicesManager
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
asked Programmatically create workflow with JavaScript, JSOM and SP.WorkflowServices.WorkflowServicesManager
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