Reputation
4,481
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 10 25
Newest
 Yearling
Impact
~228k people reached

Apr
15
comment Powershell to get template name site is using
You can use Get-SPWebTeamplate, e.g., Get-SPWebTemplate | ? { $_.Name -like "*SAHREDSERVICEPROJECT*" }
Apr
15
comment Autofill Survey via Query String
That question is not really related to this post, but you google for it (first hit on google). What I would do though to just hack it in, something like this
Apr
14
comment Get webpart's Zone Id via CSOM
Same for REST it seems, ref: /_api/web/getFileByServerRelativeUrl('/SitePages/Home.aspx')/GetLimitedWebPartM‌​anager()/WebParts
Apr
14
comment How to access the content of HTTP page from HTTPS page?
Using the Proxy API is a cool idea. I think you must have an app context though, which I find a bit strange (since it does not have to be app-specific)
Apr
14
comment Get ContentType name with select fields
I tried on 15.0.4569.1000. Neither any of the approaches above, or copied directly from your answer, either with direct opening in browser or with application/json;odata=verbose (as I think is what you are using)
Apr
14
comment Get ContentType name with select fields
This actually works for you? It does not for me, and I have a very strong feeling it does not for OP either
Apr
14
comment Use jQuery to make a “column” on the default view?
Ajax does not have to fail, it just means that the DOM is populated after your code tries to work on it. There are several ways to test this, like a simple console.log of your selector result, or a debugger statement for the same purpose, e.g., console.log($('#onetidDoclibViewTbl0 tr:first').length). Other ways is to keep an eye on the network transfers, to see if the content is actually loaded through XHR
Apr
14
comment Get ContentType name with select fields
Yes, I'm starting to think this might be a SharePoint bug actually. ContentType is a bit special, but it should work
Apr
14
comment What is difference between SharePoint REST and ODATA?
I think something as simple as The difference is that OData is a specific protocol; REST is architecture style and design pattern. should suffice
Apr
14
comment What is difference between SharePoint REST and ODATA?
The reason why I posted the link you reference as a comment on the question is because I'm not sure if it is really really SharePoint related, and perhaps a duplicate from SO (if that is even possible to tag here)
Apr
14
comment What is difference between SharePoint REST and ODATA?
stackoverflow.com/q/2458407
Apr
14
comment Get ContentType name with select fields
How incredibly odd. According to msdn you should be able to use the layout you have (.../Items(1)?$select=ContentType/Description&$expand=ContentType/Description). I did a quick test and this works: $select=*&$expand=ContentType (but doesn't help of course), as well does ...Items(1)/ContentType/Description and .../Items(1)/ContentType?$select=Description.
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
That does sound like a horrible solution, but yes in theory that should work. Any button of type submit on the page should trigger a postback which should work as expected.
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
If you have a completely custom form, then you should be able to edit the XSLT and just remove the buttons from there
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
This is for 2013, and ListFormWebPart (I'm guessing you might be using both 2013 and this Web Part)
Apr
14
comment Event receiver Causes Problem while adding items to a list
One way to disable the event receiver is to call EventFiringEnabled = false ref my link in comment in question.
Apr
14
comment SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?
@ElliotWood: Yes, they should not initialize the object. In provider hosted apps you do something like SharePointContextProvider.Current.GetSharePointContext(HttpContext).CreateUserC‌​lientContextForSPHost() instead of just new ClientContext.
Apr
14
comment SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?
Note that when you initializing a new instance of ClientContext it will validate the URL, so at least 10 nanoseconds to save there. Although when initializing in a provider hosted app the overhead is much much larger
Apr
14
comment Event receiver Causes Problem while adding items to a list
I'm just guessing here, but perhaps something like this: adrianhenke.wordpress.com/2010/01/29/… ?
Apr
13
comment Use jQuery to make a “column” on the default view?
Is ajax interfering? For instance if the view has grouping enabled it will load through ajax. Many other scenarios can result in ajax as well, such as enabling asynchronous loading on the XsltListViewWebPart. - if yes than your selector will most likely fail, or the resulting text is initially wrong