Tagged Questions
1
vote
1answer
342 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
432 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 ...
2
votes
1answer
1k 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
2k 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.
...
9
votes
1answer
1k 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 ...
