Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ajax]

An acronym for Asynchronous JavaScript and XML

0
votes
1answer
33 views

How to use SharePoint REST API to get newest list item?

I am trying to get the newest item added to a list. Get item by ID works for single item: $.ajax({ url: xurl + "/_api/web/lists('" + xlist + "')/items/getById(123)", type: "GET", headers: { "Accept"...
0
votes
2answers
30 views

SharePoint Custom Webpage/Part Not Consistently Loading

I hope this is the right place I have been in a role within my organization working with SharePoint for a couple of months now, so i'm a newb more or less. I have some experience (again a novice) ...
1
vote
1answer
31 views

Get person display name from list via javascript

I am facing problem that i cannot solve. I have a function which works properly but returns number id of user from sharepoint not display name. Here is the function: function getItems() { $.ajax({ ...
0
votes
1answer
52 views

403 FORBIDDEN error while trying to insert an item in a SharePoint list

Hi I am trying to insert a list item in a SharePoint list by using REST api. I am getting an error as: { "readyState": 4, "responseText": "{\"error\":{\"code\":\"-2130575251, Microsoft....
0
votes
0answers
11 views

Change Value of Choice Column in Another List with Ajax

On one of my create forms I have a select-list that is populated with values from another list. Now, when the user selects an option from the select-list and saves.. My goal is to change the status ...
0
votes
1answer
35 views

Updating a badge when a new item is added to a list

Hello I am trying to update a badge every time a new item is added to the list. I am making an Ajax call to the list and created a function with a counter; I also created a function with a setInterval ...
0
votes
3answers
88 views

Get List Item ID for file in Document Library

I've got a document library which has folders in it. I can get a given folder and iterate through the documents in the folder via REST just fine. What I need to do is get some of the list item ...
2
votes
1answer
66 views

upload file to SharePoint Online via REST API issue

I have a highly customized Edit form for a list. To make life easier for users, and to manage the size of the list better, instead of attaching files directly to the list, we set up a documents ...
0
votes
0answers
16 views

Unable to append to modal using PnP.js and Ajax

I'm unable to append a certain div to a modal when pulling in data using pnp and JavaScript. The whole process explained: Function DomyApiCalls - WORKS (Pulls in all the boxes with the titles) ...
0
votes
0answers
32 views

Unable to grab files inside folders on SharePoint using PnP js

Does anyone have some reference on why I'm unable to pull in files from a folder in SharePoint? This is what I have so far, this will be my PnP js call (I don't I'm not doing something right) <...
0
votes
1answer
38 views

Ajax is being called in Chrome but not IE

I'm using Ajax calls to pull in data for a table and I have successfully been able to pull in data for Chrome and everything shows up perfectly fine, but my table is not wanting to show up in IE at ...
0
votes
0answers
21 views

Unable to pull in People or Group column using Ajax

I'm pulling in data from a SharePoint list and I'm able to successfully pull in data for the "Single text/Lookup" columns, but for some reason I'm unable to map through and pull in the People/Group ...
0
votes
2answers
344 views

Rest API Post Request Returns '403 Forbidden'

I am trying to create a new choice (radio buttons) field using REST API request in my SharePoint Online environment and this is the code I'm using: $.ajax({ url: "https://mydomain.sharepoint.com/...
1
vote
1answer
58 views

Can't retrieve all Items from all lists that reside on a single subsite

SP Community, I am absolutely stumped and desperate for help. I have been up and down StackExchange trying to get 3 separate attempts to - 1. query all of the lists within a subsite and to then - 2. ...
0
votes
1answer
70 views

AJAX to Angularjs Response SharePoint

Can someone give me some assistance in converting this AJAX get list items to $http? Specifically I am trying to get the different fields to $scopes. I am aware that when doing $http now you can no ...
1
vote
1answer
128 views

AJAX REST call to POST to SharePoint list generates error

I am having difficulties with the JQuery implementation of AJAX to make REST calls to POST data to add items to my SharePoint list. Using 'GET' to retrieve information gives me no issues. Given the ...
0
votes
1answer
37 views

Retrieve one library from each site and show the last item using ajax

My senario is like this: In every site there is a list called Projects. I need to loop through each sub site and retrieve the last item from Projects list, and display them on a page in tabular ...
1
vote
0answers
14 views

I want authors to be able to edit some items on the site using REST api

I am new at using REST api and fairly new to sharepoint. I got assigned a project to design a home page, which I already did and my boss wants the authors to be able to edit some of the fields on the ...
1
vote
0answers
20 views

How to Get User-Generated Columns from Ajax

Is it possible to determine which columns in a SP List or document library were custom generated by the user? I'm essentially trying to recreate SharePoint's front end in my app, and I want to add ...
0
votes
1answer
34 views

Invalid request while renaming sub folder

When I'm trying to rename sub floder, I'm getting issue mention below: "{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"Invalid ...
1
vote
0answers
25 views

Are there any reasons not to enable AJAX on a web part?

What are the potential drawbacks one would face when Asynchronous Update or Load are enabled for a web part? (SharePoint 2013) For example, if I use jQuery to make my lists look nice or add some ...
1
vote
1answer
79 views

how to filter - with rest Api by name column?

I have used this query: _spPageContextInfo.webAbsoluteUrl +"/_api/web/lists(guid'"+guidList+"/items?$select=ID,Title,carNumberIfActive,fullName/Id&$expand=fullName/Id?$filter=fullName/Id eq ‘name'...
1
vote
1answer
76 views

displaying ajax query results in usable format

I'm trying to run an Ajax fetch which is apparently successful. What I'm unable to figure out is how to pull the individual field data to separate and use. I can display it all with a data.d.results ...
0
votes
0answers
33 views

External Ajax request

I want to do an ajax call in sharepoint online list with this code: $(document).ready(function() { $.ajax({ crossDomain: true, xhrFields: { 'withCredentials': true }, type: 'POST', data: { ...
0
votes
1answer
134 views

Unable to Query list's items using Rest API + CAML. Error “One or more field types are not installed properly…”

I want to query my custom list using REST API + CAML. And I have to use POST request to be able to get the managed metadata values (mainly Label), so I tried the below Ajax request: var body = { ...
1
vote
1answer
212 views

Get list items ids using rest api and integrated to like functionality (id value is not static)

Thanks for this article Enable like function from catalog page via javascript object model - improve this? is very useful and its working on my page, but i need your help, i am calling rest api ...
0
votes
1answer
41 views

Getting assign to by rest

I want to use ajax with rest api in order to get workflow tasks of a user. I use this: _spPageContextInfo.webAbsoluteUrl + "/_api/web/Lists/getByTitle('Workflow%20Tasks')/items?$filter=WorkflowName ...
0
votes
1answer
361 views

Sharepoint Online Excel Web Access web part refresh

Ok i have a sharepoint list with archive data about user performance (helpdesk environment). A flow runs when an item is added to the archive list which also adds the item to an excel document. I then ...
1
vote
1answer
20 views

fetching columns from assetLibrary

I have a assetLibrary , which consist of videos. I have a custom field called Description. `${rootUrl}('Vidz')/items?$select=Description&$top=2` this is the url i am passing via ajax call ,but i ...
0
votes
1answer
408 views

JSOM Break SharePoint List Item Permission

I wrote the following code to break list item permission. Code works fine other than a small issue. var user; function breakItemPermission(itemID) { //Get the current context var context = ...
0
votes
1answer
57 views

IE8 doesn't work

I'm using Ajax call for API in Sharepoint 2010. I don't have that much Access to edit master page. I also use the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:/...
1
vote
1answer
97 views

Adding a file to list item using ajax

For adding attachment via ajax I used this code from https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest : and added "for" and iffy function to make it ...
1
vote
2answers
149 views

Connected Visual Webpart - RegisterAsyncPostBackControl is not working?

I have two visual webparts connected. Provider webpart has user control (button) that should trigger update on the Consumer webpart. I do see that RegisterAsyncPostBackControl is called and control ...
0
votes
1answer
1k views

Get data from multiple lists using REST API

My requirement is: To pass listnames as an array to a method and concatenate the result after each success. The problem is I'm not able to concatenate the result from the previous ajax call ...
0
votes
1answer
119 views

IE 8 Doesn't work for my AJAX

I have AJAX code for my API. Chrome is OK, but IE is not working. When I changed the document mode of IE 8 to IE 10/Edge, it worked. NB: We use IE 11, but the default Document mode is IE 8. How can ...
0
votes
3answers
397 views

External list using REST API doesn't work

I just tried to call the Rest API using Ajax, but the server redirects me multiple times to authenticate. Finally, I get an error from the server with both a different domain and same domain name that ...
0
votes
1answer
252 views

Sharepoint REST A node of type 'EndOfInput' error when using NodeJS

I'm using a NodeJS express server as middleware for an iOS app in order to store data in a Sharepoint list. The iOS app makes a post request with the payload to a NodeJS server, which then ...
0
votes
1answer
87 views

Copy attachment from subsite list to main site list

I need to copy attachments from list in subsite to list in main site. I dont have any idea how to start and as far I know and what I have search, you cant use wf because it wont work. So does ...
1
vote
1answer
20k views

AJAX: the server responded with a status of 500 (Internal Server Error)

I am developing a visual web part and I am trying to some list items on demand. With this in mind I have created a WebService named CommentFetchSvc.asmx and added the following code: public class ...
7
votes
2answers
1k views

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I am trying to Load list items in lazy load like Facebook. I have a grid that loads data from a list, and that list may have up to 5000 items and to load all those Items in grid it takes a lot of ...
3
votes
5answers
5k views

Submitting input from HTML Form to a SharePoint list without using Infopath

I created a blank form on a HTML webpage through my Sharepoint site called http://.../testform.html. <form> <input type='text' id='name'> <input type='submit' id='submitdata' ...
0
votes
0answers
241 views

SP16 - Button click refresh page when i Use PnP-Core-JS

My webpart is for SP16. I use code from this sample and when i click button in webpart, page is refreshed. This is code for Create Item: private createItem(): void { this.updateStatus('Creating ...
4
votes
3answers
2k views

Loader Image on Synchronous call - Rest Api SharePoint

Stuck with "Loader" while deleting items. I have a set of items to delete and need to display a loader image while deleting. But, for some reason, i'm not able to solve this. I have came across ...
1
vote
1answer
209 views

Sharepoint 365 - API Updating List Item

I am trying to update a List Item in Sharepoint using the Rest API but am getting the following error: The type of data at position 0 is different than the one expected. Here is my code. The type ...
2
votes
0answers
106 views

Troubles with Ajax loaded Content

I've made a content box with a div("target" Element) and a script link which is loading following code. Also I load after the start a HTML file with the form of my box, purpos of the box is to show ...
5
votes
1answer
3k views

update sharepoint list using jQuery and ajax

I want to insert the value of html forms fields in SharePoint list using ajax (jQuery) Can someone point me in the right direction. Thanks in advance.
1
vote
1answer
561 views

How to update Values in Sharepoint list using ajax

I have a html form where using ajax i want to insert the value of that forms fields in SharePoint list
1
vote
3answers
1k views

Get document URL via Ajax

I have a document library which i am making a Ajax call to: function GetAttachments(){ $.ajax({ url: "XXX_api/web/lists/GetByTitle('CM Attachments')/items?$top=5000", type: "GET", ...
1
vote
2answers
687 views

How to retrieve all the field/property names of a document set?

I hit an error where a field/property name wasn't available when trying to look up the value. The field was something like, id (or Id or ID) -- I forget. It would be great if I could ...
1
vote
0answers
1k views

requested an insecure XMLHttpRequest endpoint. This request has been blocked; the content must be served over HTTPS

I am making an ajax call from Sharepoint site to access data from a public facing website. $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: 'http://...