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

Feb
24
comment SignalR on SharePoint Farm Solution
What I'm trying to get at is; why is an iframe (used in App Part) a problem? You can have access to all the SharePoint data from within the iframe, CRUD on behalf of the user.
Feb
24
comment client side IDs of share point elements
Thre are usually more robust ways to select the elements beside ID, what specific menu items are you talking about (so we can make an example)?
Feb
24
comment O365 Patterns and Practices JavaScript Injection / Embed JavaScript
Does the Minimal Download Strategy kick in (do you have a hash in the url) when the script does not run?
Feb
23
comment HTML button refreshes in SharePoint Hosted App
Check the resulting markup, if the <button> resides inside a <form> it will trigger form submit on click
Feb
23
comment HTML button refreshes in SharePoint Hosted App
Button is default of type submit, use type="button" as in your first example and you will be fine, not need for the JS
Feb
23
comment SignalR on SharePoint Farm Solution
You probably need to add the assemblies to your Package. Although I'm not sure why you would run SignalR in SharePoint when the app approach should work great (Provider-hosted, not SharePoint hosted), also, SignalR works well with CORS so you could run in instance anywhere really
Feb
20
comment How to get JSON column “Title” in Java
Well thanks for the room, much appreciated. Also, wouldn't it be a nice feature if normal users could create such rooms, even before they start a discussion in comments (I for one knew this would drag out quite early, but I didn't know how to make a room - I also knew this answer is actually a question so it is up for deletion so I didn't care that much)
Feb
20
comment How to get JSON column “Title” in Java
@BennySkogberg Hey how did you do that? I tried to do it, but saw only a manual way to create a room, that chat is even linked to the question. I also vaguely remember that long conversations got this "create chat"-link, alas no such link popped up this time.
Feb
20
comment Wait for _spPageContextInfo to initialize
Haha quite the digression, but yes, quak hist and tihlde ;)
Feb
19
comment Fill textfield with JavaScript
The [] output is most likely the jQuery object representing all your elements - in your case no elements, which explains why nothing happens (your selector is wrong)
Feb
19
comment Trying to make a txt file of a list using a webpart
You don't have access to file system from Sandboxed Solution. It is blocked, hence sandboxed
Feb
19
comment How can I see the fields available for retrieval via get_item()?
How about get_fieldValues() (on item)
Feb
19
comment Wait for _spPageContextInfo to initialize
Sometimes I do, yes, I bet if I expand the DOM to be as large as in SharePoint we would see clear differences. This is perhaps a better example: plnkr.co/edit/jz0e4uKkP9K4ErnhPcer?p=preview
Feb
19
comment Wait for _spPageContextInfo to initialize
Here you go: jsfiddle.net/4myc8965/3
Feb
19
comment Wait for _spPageContextInfo to initialize
Please note that you have set it to run your demo onLoad
Feb
19
comment Wait for _spPageContextInfo to initialize
I have a hard time believing that setInterval is slower, considering jQuery(document).ready will wait until the whole DOM is parsed, while setInterval can "jump in there" instantly after _spPageContextInfo is defined which is way before the whole DOM is done parsed
Feb
19
comment Wait for _spPageContextInfo to initialize
@GuilhermeSehn it is simply <script>_spPageContextInfo={...}</script>, which is placed later in the markup than my normal <script src=".."></script>, which again means it is evaluated at a later time in the DOM - and yes, I must indeed Wait for _spPageContextInfo to initialize, but what is the fastest and ultimately the best way to do this?
Feb
19
comment Copy File site collection to subsite with REST API & Javascript
The problem is that you use jQuery, which does not have a binaryStringRequestBody, and the blog you link to use SP.RequestExecutor. Also see this answer for good examples. Also note there are many other differences, such as jQuery using data property for data, while executor use body
Feb
19
comment web api query with $filter return HRESULT : 0x80131904
Is the field multi lookup on the other environment? Shouldn't your query use something like MyLookupField/Title eq 'something'?
Feb
19
comment JSOM function not getting called
I'm a bit confused, you use SOD to wait for sp.js then you call getSWDocs, but in this file you define getSWDocsSuccess ... does this mean getSWDocs calls getSWDocsSuccess?