4,136 reputation
2923
bio website
location Norway
age 28
visits member for 4 years, 9 months
seen 1 hour ago

Nov
21
comment How to properly cache, validate, refresh Access Tokens?
Did you see Navigating to new page loses querystring?
Nov
21
comment PowerShell script doesn't appear to work as scheduled task
Did you try to check off the script to run with highest privileges?
Nov
20
comment How to hide ribbon for everyone only on 1 custom NewForm.aspx?
Or just add a cewp or script editor web part and do the same thing
Nov
20
comment Installation of Sharepoint 2010 on VM
Are you sure the accounts must be AD accounts? For 2013 at least I usually use the Azure VS VM with the built in install script for SP2013, let me have a stand-alone dev environment up and running in 10 minutes fresh installed without AD
Nov
19
comment Unable to get property 'get_current' of undefined or null reference
I cringe every time I see new SP.ClientContext.get_current(), although it does actually work, and is probably not a problem here. Also, there are several places where new operator should be used in combination with "SharePoint JavaScript objects"
Nov
19
comment POST Request through WebProxy with JSON data
Holy, it did? That is cool, I honestly didn't expect it to. Let me post an answer for you go give me internet points
Nov
19
comment POST Request through WebProxy with JSON data
Depends on how you structured it, this is how it should look like: gist.github.com/eirikb/bf25e0d1094d9ff52326
Nov
19
comment POST Request through WebProxy with JSON data
Have you tried adding Content-Type with application/json to the result-array of headers (same as with Accept)?
Nov
18
comment help in adding a http link in script editor - cant get it to work
If viewurl is a string, and not the name of a variable your code will not work. The end result would be something like calling showSPDialog(http://google.com), which will not work very well. It will work if you have something like var viewurl = '"http://google.com"';. But wouldn't it be better to use some sort of templating?
Nov
17
comment ItemUpdated not changing field values
1) fired after the item is updated, EventFiringEnabled is not set to false. 2) Same item is updated. 3) Triggers an updated event; go to 1)...
Nov
17
comment ItemUpdated not changing field values
A sidenote: Wouldn't this cause an endless loop?
Nov
17
comment Scheduled task sharepoint 2013
How about app-only permission and TokenHelper? Ref blogs.msdn.com/b/kaevans/archive/2014/03/02/…
Nov
17
comment Continous loop to check if a list item has changed, javascript
Same as you are already using, yes
Nov
17
comment Continous loop to check if a list item has changed, javascript
Try calling oListItem.update();, and executeQueryAsync after that
Nov
17
comment Continous loop to check if a list item has changed, javascript
@matt updated answer
Nov
17
comment Dynamically get default display form url in sharepoint 2013 by REST or JSOM
Try data.value. It could alter if you use SPO, on premise or through an app. What you can do is to call console.log(data) and you will see the object structure in say Chrome dev tools. Another option is to view it in Dev tools network tab. Yet another is to set break point and inspect data variable.
Nov
17
comment help in adding a http link in script editor - cant get it to work
What are the forward slashes for? Wouldn't that just make the attribute values into regular expressions?
Nov
16
comment SharePoint 2013 REST how to add pagination?
Have you checked your console? Could it be a problem with copy/paste programming? Anyway, here is some code you can add directly into script editor Web Part, just to get you going: gist.github.com/eirikb/9961411d6e879b943eb2
Nov
14
comment 400 Bad Request while trying to add a user to a group using ShP 2013 REST api
Yeah ok now I see what you mean. JSON itself will of course use backslash to escape (ref JSON.stringify('\\')). But still, the link you provide is about URLs and URIs and not post body, and not even JSON, which is why I was confused :)
Nov
14
comment 400 Bad Request while trying to add a user to a group using ShP 2013 REST api
I just have to ask; how is restricted characters for WCF related to post body in REST? You don't need to escape them in the post body. Maybe if you use them as keys in a JSON object, but I don't even know how to test that (and that is not what OP has anyway)