Stack Exchange Network

Stack Exchange network consists of 174 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
3answers
44 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
31 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
12 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
18 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
29 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
19 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
73 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
49 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
34 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
71 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
33 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
13 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
29 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
23 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
55 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
65 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
27 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
104 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
196 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
0answers
81 views

asp:UpdatePanel to avoid refresh not working

I have added asp:UpdatePanel in my SharePoint page to avoid refreshing the page. But page still refreshes on button click. Any suggestions? <asp:UpdatePanel ID="updatePanel2" runat="server" ...
0
votes
1answer
40 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
0answers
71 views

post to List using REST service causing XMLHTTPRequest to Abort

This is driving me crazy because it works fine on other sites I use this with, its only on this site that it is causing issues. Basically the $.ajax request goes out, saves properly to the list, and ...
0
votes
1answer
318 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
19 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
0answers
247 views

Upload Large File in SharePoint Using REST or CSOM for Office 365

Hi I am looking for file upload API or is there any custom code is available or some logic which i can apply to Upload large file. i know we can use chunk files. but i don't aware it how we can chunk ...
0
votes
1answer
353 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
56 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:/...
0
votes
0answers
136 views

How can I get digest/__REQUESTDIGEST value in jsp(ajax) for sharepoint online POST operation

$.ajax({  url: 'https://SP_URL.sharepoint.com/sites/site_coll/_api/Web/folders/GetFolderByServerRelativePath('/Documents/NewFolder')', type: 'POST',  data: {},  dataType: 'json',  ...
1
vote
1answer
82 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
139 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
112 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
370 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
235 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
81 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
18k 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
976 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
207 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
107 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
81 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
519 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
565 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://...
0
votes
1answer
131 views

Stop Follwoing SharePoint Document

I'm trying to add a button on a document list which should cause a user stop following the document. a REST Call from the URL ...teams/corporate_communications/_api/social.following/stopfollowing(...
6
votes
1answer
351 views

How to load the list items in a GridView when scrolled C#

How to develop a VisualWebPart that loads list items on demand when scrolling the GridView, because I have a list with more than 10000 items and performance is key for this application. Description: ...