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

Feb
25
comment How to check whether item is being added or updated in PreSaveAction
@NadeemYousuf Tested it on O365, and it was not available on O365 custom forms, I suspect the same is true for on-premise.
Feb
25
comment Are tags disabled in Sharepoint Online?
A hint to any alternative solution wouldn't hurt that post I think, but perhaps Taxonomy is "taking over"?
Feb
24
comment How to check whether item is being added or updated in PreSaveAction
I kind of like @NadeemYousuf s suggestion, perhaps something like var isEditForm = !!(GetUrlKeyValue('ID') || GetUrlKeyValue('id'))?
Feb
24
comment client side IDs of share point elements
So the user must make a choice? Or is the problem the content type that comes with the list? - if so you could just remove this CT from the list. First guess at selector could be something like .ms-list-addnew a:has(span), or the first a
Feb
24
comment How to check whether item is being added or updated in PreSaveAction
@MohamedDerhalli JSRequest.QueryString doesn't seem to always be populated, actually didn't get populated for me on any of these: 2010 form, 2010 custom form, 2013 form, 365 form or 365 custom form
Feb
24
comment How to check whether item is being added or updated in PreSaveAction
@PirateEric Good call! Updated answer. If you have a better match please share (quick fix intead of larger solution)
Feb
24
comment client side IDs of share point elements
To your quite generic answer I would like to point out that title attribute in SharePoint is very very often based on language, and so nothing I would recommend anyone to use.
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