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 111

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

update list item with presaveaction function

You're missing an important line of code in the updateListItem function. function updateListItem() { var clientContext = new SP.ClientContext.get_current(); var list = clientContext.get_web().get_ …
Rob Windsor's user avatar
  • 12.7k
1 vote
Accepted

Conditional URL with ternary operator in a href tag in JavaScript

I'm not 100% sure I understand what you're asking. Are you looking for something like this? var href = data.d.results[i].ServerRedirectedEmbedUrl ? data.d.results[i].ServerRedirectedEmbedUrl : data.d. …
Rob Windsor's user avatar
  • 12.7k
0 votes

How to format results from rest api sharepoint jquery

You could use the native JavaScript method toLocaleString() on the Date type to format the date: data.d.results[i].Created.toLocaleDateString("default", {dateStyle: "short"}) You could use a library …
Rob Windsor's user avatar
  • 12.7k
0 votes

Which columns are being returned from an AJAX call?

Examining the data returned from the web service call will get you the information you're looking for. There are a couple relatively easy ways to do this. Use the web browser debugging tools. Put a d …
Rob Windsor's user avatar
  • 12.7k
1 vote
Accepted

Create new listItem with multichoice field Sharepoint Rest Api V1

Instead of setting FieldValue to an array, set it to a string with the choice values separated by ";#". In the example you give above the JSON would become: { "listItemCreateInfo": { "Fold …
Rob Windsor's user avatar
  • 12.7k
2 votes
Accepted

SharePoint Framework with Promise in extension

I didn't test this code but it should be mostly right. It's enough to give you the idea of what you need to do. There is an asynchronous call to getMenus inside the body of the _getPlaceholderHtml me …
Rob Windsor's user avatar
  • 12.7k
1 vote
Accepted

Retrieve users info with js and sharepoint

You are making the wrong API call. You should instead use /_api/SP.UserProfiles.PeopleManager/GetPropertiesFor See Retrieve userprofiles by REST API for more information.
Rob Windsor's user avatar
  • 12.7k
1 vote

Include JavaScript file so it load automatically in SharePoint Framework

Using the SharePoint Framework developers can still inject JavaScript into pages, however that script needs to be contained in a package and deployed to an App Catalog first. …
Rob Windsor's user avatar
  • 12.7k
8 votes

How to deploy SPFx web parts on SP 2016 on prem?

Make sure to heed the part about removing the restriction on .json files being uploaded if you are going to host your JavaScript files in SharePoint. … In this case I chose to host the JavaScript files in SharePoint. I removed the block on uploading .json files in the web application. …
Rob Windsor's user avatar
  • 12.7k
0 votes
Accepted

Interaction between two webparts

A Google search for "javascript custom events" (or "jquery custom events" if you're using jQuery) should give you all you need to implement this. …
Rob Windsor's user avatar
  • 12.7k
0 votes

Add JQuery to SharePoint

I discuss how to get started with jQuery (including how to deploy and reference the library) in this conference session: JavaScript and jQuery for SharePoint Developers …
Rob Windsor's user avatar
  • 12.7k
2 votes

Is there any init function in sharepoint hosted app, It should run once when app is installing

It's not hard to implement your own JavaScript "App start" functionality to do updates. … The basic process is: Check to see if you need to update Ensure current user has permissions to do the update Do the update For more information check out this blog post the Chris O'Brien: JavaScript-based …
Rob Windsor's user avatar
  • 12.7k
3 votes
Accepted

Uploading File with rest api and HTML5 api

You can't send the form data directly, you need to read it into an array buffer first. var getFileBuffer = function (file) { var deferred = $.Deferred(); var reader = new FileReader(); …
Rob Windsor's user avatar
  • 12.7k
3 votes
Accepted

How to query data on app web from host web

You do not need to do anything special to access AppWeb resources from the HostWeb. The AppWeb is just a child site of the HostWeb so you can access it that way.
Rob Windsor's user avatar
  • 12.7k
10 votes
Accepted

AJAX/Rest only returning 100 items instead of full list

The OData provider for the REST API is configured to limit the number of items in a response to 100. It protects against developers inadvertently making a request that returns large result sets. If …
Rob Windsor's user avatar
  • 12.7k

15 30 50 per page