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
1answer
26 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
34 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
30 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
11 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 ...
0
votes
0answers
9 views

New page with default content page has no page layout

I've created a form to make a new page with a few tags to work with a page layout / pages library I've set up earlier. The form asks for a page title and a 'Resource' tag and generates the url. As far ...
1
vote
0answers
19 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
25 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
38 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
56 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
24 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
84 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
182 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
69 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
58 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
276 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
18 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
209 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
287 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
119 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
72 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
124 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
103 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
349 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
199 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
74 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
15k 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 ...
6
votes
2answers
903 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
4k 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
181 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
1k 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
85 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
66 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
2k 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
463 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
884 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
471 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
121 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
313 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: ...
1
vote
0answers
807 views

Passing parameters in a jQuery ajax call to an Application page Webmethod

I have created application page in SharePoint. In application page I have a WebMethod. I'm calling that web method using ajax call it works fine. Now I'm trying to pass parameter to web method, but ...
2
votes
2answers
213 views

how to verify if the current user is in a specific group before the page render with jslink on Sharepoint 2013 365

I get this solution, but I have a need of turn some fields read-only but a function of verifying executes after all functions and do not work correctly, any idea about what I can do? function ...
1
vote
1answer
487 views

Unable to retrieve list items using REST JSON (using jQuery.slim)

I created a new page in team site and dropped script editor web part. I am using the following code to read items from a list in SharePoint 2016 but it doesn't seem to work. It does show that jquery ...
4
votes
2answers
1k views

AJAX Pass variable to successhandler

Considering this sample code, how can it be changed so that it makes the 'something' variable available in the succeshandler function? var url = _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists"; ...
0
votes
3answers
2k views

get list item from SharePoint online 365 using rest api

I need to get data from SharePoint online list by using rest api. I will use the GET and POST method (post method in camel query case). urlapp: the encoded url such as https://name-29a8f2a9e3342d.... ...
0
votes
1answer
144 views

Is it possible to combine contentclass terms in a Rest call?

SharePoint onPremise - 2013. I'm attempting to use the following string, and get errors. 'contentclass:"STS_Web" OR contentclass:"STS_List_DocumentLibrary"'; It works perfectly if I specify a single ...
0
votes
0answers
608 views

REST/Ajax Results Undefined Error When Getting Items from All Lists

I need help trying to do an iteration with ajax rest api utilizing jQuery. I keep getting a 'results' undefined error. I understand that I need to make a loop for each list, however, I'm not quite ...