Skip to main content

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!

Filter by
Sorted by
Tagged with
0 votes
1 answer
317 views

[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 ...
abhishek23 Negi's user avatar
0 votes
2 answers
2k views

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 ...
Rinu's user avatar
  • 1,473
1 vote
2 answers
124 views

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 ...
Hilfsschueler's user avatar
1 vote
2 answers
994 views

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....
Adarsh Awasthi's user avatar
1 vote
1 answer
57 views

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 ...
aRip's user avatar
  • 11
0 votes
2 answers
109 views

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 ...
OLA's user avatar
  • 231
0 votes
1 answer
901 views

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 ...
user4205's user avatar
  • 601
0 votes
1 answer
6k views

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?
Adarsh Awasthi's user avatar
0 votes
3 answers
4k views

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 ...
OLA's user avatar
  • 231
2 votes
1 answer
3k views

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 ...
Milind's user avatar
  • 1,548
0 votes
1 answer
152 views

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 ...
OLA's user avatar
  • 231
1 vote
1 answer
399 views

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 ...
user87293's user avatar
  • 115
0 votes
3 answers
1k views

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 ...
Susan T.'s user avatar
  • 141
1 vote
2 answers
201 views

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 ...
Ramesh's user avatar
  • 574
0 votes
1 answer
334 views

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 ...
Noah's user avatar
  • 319
0 votes
1 answer
407 views

I'm new to working with sharepoint. When i tried to call share point API url from ajax call in JavaScript. But, it's continuously failing and throws the error. I can say, that is CORS error. So, i've ...
Chanikya's user avatar
  • 103
0 votes
1 answer
1k views

I have an application build up in SharePoint 2013. In one of the custom list form, we are trying to update list item using Rest API call with type Patch. Few users are getting a response {"...
Ankitkumar Malde's user avatar
0 votes
1 answer
291 views

I have a list and some columns retrieve value from external list. How to get all items from that list(attached img) with REST I'm trying like this function traerSolicitudes() { var lista = "...
Guillermo's user avatar
0 votes
2 answers
979 views

I've multiple folders inside the pages library Within each folder I have pages Grupo de produtos is of type taxonomy. I run the function GetPagesProd and for each item I get the value from Grupo de ...
KmDroid's user avatar
  • 405
0 votes
1 answer
533 views

I have a .csv file in a file library, i would like to know if is there way to display in some page when the .csv file was last modified, and who did. Does anybody know any code in to get this ...
Y. Oliveira's user avatar
1 vote
1 answer
179 views

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. ...
seaandtea's user avatar
0 votes
1 answer
537 views

I have queried all of the lists within a subsite but need to filter based on criteria in the title. I then need to display the filtered list contents. Is this possible if the list contents are not ...
seaandtea's user avatar
0 votes
1 answer
576 views

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 ...
Joseph Cain's user avatar
1 vote
1 answer
313 views

First time playing in this environment: Sharepoint 2010. I have access to very limited tools: browser, notepad and the Internets. Feeling a bit rusty, haven't programmed in a while and I'm having a ...
mcv's user avatar
  • 131
1 vote
1 answer
2k views

I am experimenting with some Rest API code. My knowledge of javascript and jquery is basic but I know enough to usually get what I need. Usually through trial and error. Here is what I am attempting ...
Martin's user avatar
  • 113
0 votes
1 answer
213 views

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 ...
Burre Ifort's user avatar
  • 1,360
0 votes
1 answer
316 views

I got a problem with the item id, at the moment i could create a new item without problems but i can't read it since i delete 2 items, now when i try to retrieve the item properties i got this error :...
Federico Iannarelli's user avatar
0 votes
1 answer
1k views

I have a REST call to mysite/_api/web/webs, I get a successful response, but if i remove permission from mysite/subsite01/ I get a 403, even if I have access to mysite/subsite02/ mysite/subsite03/. I ...
Curtis Hennessy's user avatar
0 votes
2 answers
1k views

For getting SharePoint list values through REST. I came across two solutions: writing CAML Query in the body of AJAX call Odata query selector operators (eg: select, expand) in the url Are there any ...
raja gangadhar's user avatar
1 vote
2 answers
2k views

I am trying to get list data with an id from my SharePoint online through REST. I have my ajax call like below. getFunction:function(id){ return new Promise(function (resolve, reject) { $.ajax({ ...
raja gangadhar's user avatar
1 vote
1 answer
1k views

Can we get the lookup value from SharePoint list through REST without using the query operators (select/expand) ?
raja gangadhar's user avatar
0 votes
1 answer
1k views

How to change null value to empty string in Sharepoint custom script? Here is my code. $(document).ready(function() { getUserListItems() }); function getUserListItems() { var ...
junreyd's user avatar
  • 65
1 vote
1 answer
652 views

Anybody know how to update attachment file in list item using javascript? Any idea are so much appreciated.
junreyd's user avatar
  • 65
0 votes
1 answer
3k views

I have the input type as text for the date field and I am confused how to store the same in a variable and on change of that date function need to populate other column values SharePoint list. I need ...
Prashanth Edige's user avatar
1 vote
0 answers
894 views

I have been trying to make a call through jQuery to the Search REST API but I'm always getting' 401 Unauthorized, this is my code var siteUrl = "http://myspserver:27180/sites/eyksmainportal"; $(...
Carlos M's user avatar
  • 141
0 votes
1 answer
361 views

I'm looking to display on a web part in SharePoint online a list of all sub-sites and all users with full control to that particular site i.e. Team Site Site Owners https://ab/...
clare's user avatar
  • 11
0 votes
2 answers
974 views

I have a problem with getting items using SPServices: <script src="servername/SiteAssets/jquery-1.10.0.min.js"></script> <script src="servername/SiteAssets/sputility.min.js"></...
Vusi85's user avatar
  • 67
0 votes
1 answer
2k views

var ArrivalCity = (data.aircraftView[0].arcftSchedList[0].tripArrivalCity); $('select[title="Select the Destination"]').val(ArrivalCity); var ArrivalCity1 = (data.aircraftView[1]....
Prashanth Edige's user avatar
0 votes
3 answers
2k views

var ArrivalCity = (data.aircraftView[0].arcftSchedList[0].tripArrivalCity); $('input[title="Origin"]').val(ArrivalCity); Here the origin is a single line text box field where I am populating ...
Prashanth Edige's user avatar
0 votes
1 answer
1k views

Is it posible to upload file in Lists Attachments in SharePoint in custom way I already tried using REST and JS but I am facing an error and it can't upload if it's posible kindly suggest what way to ...
junreyd's user avatar
  • 65
2 votes
2 answers
849 views

What is the problem with this? Im trying to attach file in SharePoint. <!DOCTYPE html> <html> <head> <title>Sample</title> <script type="text/javascript" ...
junreyd's user avatar
  • 65
1 vote
2 answers
114 views

How can I add attachment in SharePoint I am stuck on this problem hopefully can help me to proceed this problem. I will so much appreciate your help. Thank you.
junreyd's user avatar
  • 65
0 votes
1 answer
1k views

I am trying to call a rest service using ajax in SharePoint online list form by adding a web part. Here is the code attached. SharePoint is https where as my java rest service is http. I am confused ...
Prashanth Edige's user avatar
0 votes
1 answer
582 views

I am debugging the code below and the line Context.ExecuteQueryAsync is not being trigerred. I am not getting any error. async function updateListItem(listName, itemId, itemProperties, pageurl, ...
Keshav Taurah's user avatar
1 vote
1 answer
484 views

I need to populate certain columns of the list when I select a value from the dropdown column in the same list. Say for example I select create Item in the list and then I have a column called ...
Prashanth Edige's user avatar
0 votes
1 answer
317 views

I am using below code with reference to this thread: Yes/No (check box) - who updated field on the custom list item Basically when a user checks on a yes/no column, it shows/prints the user name who ...
mdevm's user avatar
  • 1,275
0 votes
2 answers
3k views

I have a SharePoint list called "Products" (containing 4 columns - Product, Manager, Approver, Status) I have a dropdown list that populates the 'Product' column of the 'Products' list. Say I select ...
Sanjana V's user avatar
  • 301
2 votes
1 answer
1k views

I am having trouble to create an expand query using the REST API. I have two lists which are linked. PIR Title, Date, Number SIR Title, PIR2SIR (lookup to Title in PIR), Date, Number Now I want to ...
user14010662's user avatar
0 votes
1 answer
3k views

I am wanting to run an ajax command to return just one column from one row. The first query returns all rows, but just with the Title column. The second query returns just one row, but with all ...
southskies's user avatar
0 votes
0 answers
63 views

Apologies in advance for the length. I have rolled onto a project where I'll take over a former colleague's webpage that resides on the client's SharePoint site. The colleague wowed the client by ...
DCUFan7's user avatar
  • 101