2
votes
1answer
167 views

Custom Action in user dropdown

Im trying to implement a custom action in the logged in user dropdown (when you click 'sp_admin' in the image below). The custom action should be a text called "Switch user", which when clicked ...
1
vote
1answer
661 views

(Sandbox solution) Ensure my javascript file is loaded after core.js

Using a CustomAction in the location of a scriptlink, I'm inserting a javascript code, however I need this code to run after core.js runs. Does anyone know how I can achieve this? My CustomAction ...
0
votes
2answers
552 views

referencing jquery in a sandboxed solution

I have a sandboxed sharepoint project, in which I have created a module, put jQuery there and referenced it from my webpart's ascx page like this: <head> <script ...
3
votes
2answers
2k views

Page.ClientScript.RegisterClientScriptInclude in Sandbox?

I'm trying to use jQuery in a Sandboxed Visual WebPart (2010): protected void Page_Load(object sender, EventArgs e) { string jQuerySrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), ...
0
votes
3answers
3k views

Register and run javascript on load in a sandboxed webpart

Got a placed called 'SiteAssets/test.js' with the function test(). I've created a nonvisual webpart, would like the script via the cs file and then run the function during the loading of the webpart. ...
12
votes
2answers
2k views

Cannot add custom web part to page using the JS OM

I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working ...