Questions tagged [jquery-ajax]
With the jQuery AJAX methods, you can request text, HTML, XML, or JSON from a remote server using both HTTP Get and HTTP Post - And you can load the external data directly into the selected HTML elements of your web page! Without jQuery, AJAX coding can be a bit tricky!
88 questions
0 votes
1 answer
315 views
Fetching the data through Graph API in the webpart using sharepoint framework
[I am trying to fetch my email messages through Graph API into the webpart in sharepoint framework] In the webpart Not getting the details of my emails through Graph API Error : Cannot read property ...
0 votes
2 answers
2k views
Rest api returns undefined
I am trying to get a random list item field from a sharepoint list. but the results return is undefined. The URL of the rest api is correct as i copy and past it directly to the browser it displays ...
1 vote
2 answers
120 views
REST API: Send Auth only for the one request
I'm working on a little SP On-Premises 2016 project. I have to make several request to different Site-Collections in the farm. I'm making those requests with an Ajax-Call inside a Script-Editor ...
1 vote
2 answers
987 views
running multiple ajax calls synchrnously in SharePoint rest api
I have written javascript REST API code with two AJAX Calls. Code is like below: $.ajax({ onSuccess(function(){ for(let i=0;i<=data.d.results.length;i++) { GetEmployeeDetailsFromOtherList(data....
1 vote
1 answer
49 views
Sharepoint access to API
I was asked to develop a program that extracts the properties of each user profile. I'm using ASP.NET Core and Visual Studio and I'm trying to use AJAX and Javascript to do the requests. Here's my ...
0 votes
2 answers
107 views
jQuery AJAX list Get $.deferred..nothing happens
I am trying to use jQuery deferred to cache data into arrays coming from lists so I can use throughout my code for efficiency. Unfortunately, I am unable to do so. I don't get any errors but nothing ...
0 votes
1 answer
894 views
502 bad gateway azure app service + provider hosted add-in
I have a provider hosted add-in deployed to azure web application (app service). I have a long running task, iterate through all site collections (including sub webs) in tenant and perform some task ...
0 votes
1 answer
6k views
Creating folder in SharePoint Library using Rest API
I want to create a folder inside "Communications" document library in below site using rest api. https://contoso.sharepoint.com/sites/SP Can you please assist on how to do that?
0 votes
3 answers
4k views
How to insert data into a SharePoint multi-select field?
I have a form that has a few multi-select choice fields. When I try to add an item, I get an unusual error below. I am using the Vue.js framework. "value: "A node of type 'StartArray' was read ...
2 votes
1 answer
3k views
XMLHttpRequest to login.microsoftonline.com Access-Control-Allow-Origin issue
I am trying to get token from https://login.microsoftonline.com it gives me error But If I use https://cors-anywhere.herokuapp.com/ its works but requirement is to call this function every 2 min from ...
0 votes
1 answer
147 views
Error inserting data into SP list using REST API
I've never seen this error before and I've used REST API many times. I am in SharePoint Online so maybe it behaves differently. Whenever I insert and item into a list using REST, I get the ...
1 vote
1 answer
396 views
How to return results from executeQueryAsync
I know this has been asked before here and I've viewed several similar questions, but I'm just not getting it and could use some assistance. I'm currently reading a file in SharePoint's library via an ...
0 votes
3 answers
1k views
How to insert selected Checkboxes via Sharepoint 2016 API
I've been able to piece together the following code that "builds" a checkbox list in Sharepoint 2016. That was step one. Now, I'm trying to figure out how to loop thru the whole list of Departments ...
1 vote
2 answers
194 views
Asking credential popup on sharepoint 2013 public facing site
I have sharepoint 2013 site as public facing migrated from 2010. I have one page where I am getting items from the list using rest api. when i access this page without login as an anonymous user it ...
0 votes
1 answer
327 views
Calling a WCF Service with jquery ajax from Sharepoint Online
I'm using Sharepoint 365. I would like to call a WCF Service located in a server in my intranet to read data using a script editor webpart and jquery ajax. Anyone has any example of how to accomplish ...