4,129 reputation
2923
bio website
location Norway
age 28
visits member for 4 years, 9 months
seen 14 mins ago

Nov
6
answered Call Javascript on Sharepoint Calendar add button Click
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
5
answered Remote Server File Access
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
revised Sandboxed solutions get all sharepoint lists in sitecollection
Safer code concerning revitalize of SPWeb
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
4
answered How do i activate a Feature when a subsite is created
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
answered CAML Query for Values Not “In” (with sufficiently different title to let me post the question)
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
answered Sandboxed solutions get all sharepoint lists in sitecollection
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
answered Add Custom Javascript to Quick Launch? +Skype Button