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 [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!

0
votes
1answer
17 views

What are the required modifications in web.config in sharepoint site to expose URL to ajax call

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 ...
0
votes
1answer
13 views

SharePoint Rest API Patch request to update list item not working

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 {"...
0
votes
1answer
23 views

Get item from external list field with ajax - SP2013

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 = "...
0
votes
2answers
39 views

Get value from Column and cut the duplicates using SharePoint Rest API

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 ...
0
votes
1answer
27 views

Page to show “Modified By” and “Last Modified Date” of file in file library

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 ...
1
vote
1answer
60 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
48 views

How To: Filter A Query on All Lists Based on Title Contains

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 ...
0
votes
1answer
104 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
63 views

Error reading syndication item: 'Data at the root level is invalid. Line 1, position 1.'

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 ...
1
vote
1answer
306 views

Rest API to query User Information List

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 ...
0
votes
1answer
40 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 ...
0
votes
1answer
80 views

SharePoint 2013 - retrieve error using item id

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 :...
0
votes
1answer
55 views

403 on /_api/web/webs if I don't have access to 1 subsite out of many

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 ...
0
votes
2answers
191 views

CAML Query vs Odata Query string operators

For getting SharePoint list values through rest. I came through two solutions writing CAML Query in the body of AJAX call Odata query selector operators(eq: select,expand) in the url ...
1
vote
2answers
397 views

How to use CAML query with rest

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({ ...
1
vote
1answer
111 views

Look Up value through REST without select or expand

Can we get the lookup value from SharePoint list through REST without using the query operators (select/expand) ?
0
votes
1answer
327 views

How to change null value to empty using REST

How to change null value to empty string in Sharepoint custom script? Here is my code. $(document).ready(function() { getUserListItems() }); function getUserListItems() { var ...
1
vote
1answer
212 views

Update attachment file in SharePoint using custom JavaScript

Anybody know how to update attachment file in list item using javascript? Any idea are so much appreciated.
0
votes
1answer
498 views

SharePoint date field value using jQuery

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 ...
1
vote
0answers
267 views

Call to Search REST Api with jQuery results in 401 Unauthorized

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"; $(...
0
votes
1answer
155 views

jQuery and REST API to list all subsites and users in those subsites with full control

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/...
0
votes
2answers
161 views

SPServices CompleteFunc returns error

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"></...
0
votes
1answer
379 views

SharePoint populate Choice field value using jQuery

var ArrivalCity = (data.aircraftView[0].arcftSchedList[0].tripArrivalCity); $('select[title="Select the Destination"]').val(ArrivalCity); var ArrivalCity1 = (data.aircraftView[1]....
0
votes
3answers
516 views

SharePoint Single line of text field value using jQuery

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 ...
-1
votes
1answer
233 views

Is it posible to upload file in Lists Attachments in SharePoint in custom way

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 ...
2
votes
2answers
97 views

How to attach file in sharepoint I am using that function but its error [duplicate]

What is the problem with this? Im trying to attach file in SharePoint. <!DOCTYPE html> <html> <head> <title>Sample</title> <script type="text/javascript" ...
1
vote
2answers
35 views

Attachment File using REST was failed to upload with the problem of SP.RequestExecutor.js

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.
0
votes
1answer
208 views

Ajax call to Rest service not working(no response)

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 ...
0
votes
1answer
96 views

Context.ExecuteQueryAsync not trigerring

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, ...
1
vote
1answer
121 views

Populate Specific items of the SharePoint Online List using Java webservice when a Drop-down column is selected while creating a new item

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 ...
0
votes
1answer
32 views

How to add time stamp in addition to user name profile property

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 ...
0
votes
2answers
1k views

Populate textbox based on dropdown selection from a Sharepoint list

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 ...
1
vote
1answer
159 views

constructing an expand with REST API

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 ...
0
votes
0answers
40 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
0answers
14 views

Large amount of data needed for custom form/sharepoint UI…What are my options?

Unfortunately, we do not have access to a server and need to utilize Sharepoint 2013 Online functionality for storing large amounts of data. To put it in perspective we are needing data for an entire ...
0
votes
1answer
504 views

ajax filter and select

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 ...
0
votes
0answers
30 views

Give users a form to set list item permissions

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 ...
0
votes
1answer
1k views

How to perform POST operations in SharePoint 2013 using REST API from external Application

I am trying to perform POST operations in SharePoint 2013 environment using REST API from external application running under the same company domain. Till now I am to do the GET operation successfully ...
0
votes
2answers
475 views

Add items in Sharepoint Online modern UI list using API

I need to add items into custom list which is into SharePoint Online modern UI. I tried inserting the data using ajax call but it is not working in it although it is working in Classic UI. Please ...
1
vote
2answers
157 views

Execute ajax foreach element in array

I have function like this: function sendEmail() { var appweburl = _spPageContextInfo.webAbsoluteUrl; var urlTemplate = appweburl + "/_api/SP.Utilities.Utility.SendEmail"; var fieldName = "Notificar ...
1
vote
1answer
3k views

Error : “The 'Access-Control-Allow-Origin' header contains multiple values” while enabling CORS in SharePoint 2013

I am trying to access SharePoint Document Library Data from outside application through rest api. Below is the code I am using. function readSPRestApi() { console.log("Calling Api.."); ...
3
votes
2answers
2k views

How to use SharePoint REST Api in an application that is hosted outside of SharePoint

I have a requirement where I have to perform CRUD operation on SharePoint 2016 List and Libraries using the REST API from JavaScript. The problem is the application from where I need to make the calls ...
1
vote
1answer
217 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
141 views

Excel web part vs rest api

I want to DISPLAY multiple excel charts on a dashboard. I Do Not need the functionality of the excel web part. So, what I plan on doing is getting an image of the charts via the excel rest api and ...
0
votes
1answer
61 views

How to go back to month after selecting day in Calendar View webpart?

I have select Day from month but not get any button to go back to month view. As shown below. How we can get month after selecting days as shown in second screenshot. Their is no button to go back ...
0
votes
3answers
232 views

REST API with HTTP in Sharepoint Online

I am trying to consume a REST API that the protocol is HTTP, no HTTPS. But, as Sharepoint Online uses protocol HTTPS, I am getting this error: Mixed Content: The page at 'https://integralinf....
0
votes
1answer
618 views

Get list items and push into array for jqBarGraph

Not sure what I'm missing below but would like to push some item lists into this array in this format below: stackedByYear = new Array( [[14,44],'2007'],     [[18,38],'2008'], ...
1
vote
1answer
65 views

How can I send alert to external user on any change in the list item value in SharePoint online List?

How to send alert to external user on any change in SharePoint list item because list contain more then 32 columns? Is there any better approach (OOB) other than comparing individual value using ...
1
vote
0answers
379 views

Integrating handlebars and DataTables in SharePoint 2013

I am using Handlebars to display my SharePoint list into a table, which works. But when I try to turn it into a dataTable, it does not transform into a dataTable. I was able to do it in jsFiddle and ...
0
votes
1answer
429 views

Why do we use headers in REST API, when we are already mentioning the method as POST?

my question is about - when we use the same REST API for information exchange for other tools, we don't mention headers, x-httpmethod & x-requestdigest there. But in case of SharePoint, why don't ...