3,497 reputation
2722
bio website
location Norway
age 27
visits member for 4 years, 3 months
seen Jul 18 at 20:08

Nov
9
comment I cant hide the Title field programatically
That would be my only suggestion, as I ran and verified that it worked before I posted it here :) But I only tested on a normal SPList, which is probably not what you are looking for at all.
Nov
7
comment Does jQuery ship with SharePoint?
(function($){...})(jQuery);
Nov
6
comment CSS Declaration in SharePoint Designer 2010
Although not very applicable for SharePoint because of doctype it is interesting to know that link element is actually a void element (empty content model), so that will be interesting for SharePoint 2016 =)
Nov
6
comment Working around https
If your farms have different hosts or ports then using OpenPopUpPage will still break Same Origin Policy, because of the iframe it uses.
Nov
6
comment Call Javascript on Sharepoint Calendar add button Click
Note that will only trigger for the large button (hence "NewListItem-Large"). You can run that in console when you see the button. document ready will not work, as the Ribbon is loaded asynchronously.
Nov
6
comment Call Javascript on Sharepoint Calendar add button Click
What are you trying to do? You can hook into the button, for example with jQuery: $('[id="Ribbon.Calendar.Events.New.NewListItem-Large"]').click(function(){...})‌​ or even override the methods directly in SP.UI.ApplicationPages.CalendarMouseHandler. But this will only tell you if the modal window were opened. You could however override the whole modal
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
@PerJakobsen, I have updated the answer with code I hope is safer. Although I love writing code like this: gist.github.com/a7c6efb2360382933896 I believe this is more straight forward (and faster, for those that might care :) ).
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
Yes I see, it's a property ParentWeb on SPWeb which will be reopened (m_parentWeb in my dissasembler). Although it seems to do this when it is null only. @PerJakobsen you got a text-book solution for this? I see how one could wrap in using for each web, and then do work inside it, and even use Event as a callback. Feel free to edit the post :)
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
I didn't know that. So SPList got a reference to the original SPWeb object, which will revitalize when it is called upon
Nov
2
comment Add Custom Javascript to Quick Launch? +Skype Button
For the first example you would not need the item ahead of time. For the latter you would. Choose which one to use :)
Nov
2
comment Possibility of creating a normal public facing website with Sharepoint Online?
A WSP would be a sandboxed solution in your case. I have played around some with this, see my testpage . This is a WSP I upload and enable on the site, if interested you can see the [source](github.com/eirikb/www.eirikb.no). Again a bit self-promoting, so just leaving this as a comment :)
Nov
2
comment Moving list template to different farm with different site template
Was the list template created with the same language/locale?
Nov
2
comment Possibility of creating a normal public facing website with Sharepoint Online?
Does the public facing site have to be editable through the web interface, or is designer/WSP enough?
Nov
2
comment CAML Query for Values Not “In” (with sufficiently different title to let me post the question)
The column not being ID changes the matter. You could also build a huge CAML by nesting And and Neq, which again can be made easier through U2U CAML Builder or CodeCaml. But still manual, and quite messy.
Nov
2
comment Dynamically registering JavaScript from within a sandbox web part
Yes, that is basically how it works. I use it for many internal projects at work. Since you show interested I decided to upload the WSP to gh-pages on github if you like to test it out, you can find it at github.com/eirikb/sppreload/blob/gh-pages/…
Nov
2
comment WMP object in content editor webpart
If you open the video directly, do you still get the prompt? (Could it be some other asset causing it)
Nov
2
comment WMP object in content editor webpart
Is the video located outside "same origin"? (different protcol, host or port?)
Nov
2
comment Check if SPWorkflow is running
The column I'm talking about is on the item, you should have access to it.
Nov
2
comment Dynamically registering JavaScript from within a sandbox web part
Self-promoting is bad, but I guess I can leave this as a comment at least; have you seen github.com/eirikb/sppreload ? It uses the first point you made, but it does it a bit more neatly, like taking care of dependencies, never re-re-reloading same scripts (based on names) and it supports CSS through injection
Nov
1
comment Display navigation from another site collection
I made my example with a simple UserControl, you can add this to any delegate control, such as AdditionalPageHead, or override the search field and just pad the menu to left with CSS. I also imagine you can use the same "temporary SPWeb hack" to alter the SiteMapSource for the data source delegate as well, with your own DataSource.