Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 60583

Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

0 votes

executeQueryAsync not working in for loop

I think you may be running into a race condition. Try loading your subscription before the for loop. Run your for loop in the success callback of your first executeQueryAsync(). This way, it' …
BigRaj's user avatar
  • 438
1 vote

Use REST API to get group SharePoint 2010

The endpoint is different for SP2010. The URL below will return all SharePoint Groups on a site collection. <SiteCollectionUrl>/_vti_bin/Listdata.svc/UserInformationList?$filter=substringof('Shar …
BigRaj's user avatar
  • 438
0 votes

How to get specific listview data with javascript?

There's a lot of advantages to doing this. The trick is to get the caml query off of the list view before querying the list for items. var ctx = new SP.ClientContext.get_current(), list = ctx. …
BigRaj's user avatar
  • 438
0 votes

Get Page Field Values with javascript

spPageContextInfo.pageObject = page; }, function(sender, args){ console.error(args.get_message); } ); } _spBodyOnLoadFunctionNames.push(PageObject); The items can then be accessed via JavaScript
BigRaj's user avatar
  • 438
0 votes
Accepted

Start Workflow via JS gives error "Value cannot be null"

Based on the first example on the StartWorkflow documentation, it looks like your workflowParameters should be "<root />". I think by having <Data></Data> in there it is expecting that there be a p …
BigRaj's user avatar
  • 438
0 votes

How to run AJAX call on page load and access that information from a custom webpart? [ShareP...

I think this is what you're looking for based on the comments above: var employees = []; function getADInfo(){ $.ajax({ url: "http://mes-server/CustomWebparts/DirectorySearch/roster.txt", …
BigRaj's user avatar
  • 438
0 votes

Help stopping a SharePoint Workflow with JavaScript

Unfortunately 2010 Workflows do make a difference. Using "SP.WorkflowServices.WorkflowServicesManager" only works on SP2013 Workflows. From what I understand, there isn't a "Stop Workflow" web servi …
BigRaj's user avatar
  • 438
0 votes

SharePoint Custom Webpage/Part Not Consistently Loading

How are you getting the code to kick off? $(document).ready(function(){<code here>});? It's possible that the token needed for a rest call hasn't been generated yet when the code runs, causing it to …
BigRaj's user avatar
  • 438
0 votes

validation for this page is invalid and might be corrupted. Please use your web browser's Ba...

your ajax call looks a bit off. $.ajax({ url: "http(s)://<URL OF SITE COLLECTION>/_api/web/lists/getbytitle('CommentBoxSource')/items", type: "POST", data: JSON.stringify(item), headers: { …
BigRaj's user avatar
  • 438
-1 votes

Sharepoint 2013: Moving a field o be side by side with another field doesn't save it

This way you will not be restricted to JavaScript being executed after your load, and will not need to maintain any specific JS or CSS. …
BigRaj's user avatar
  • 438