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

Column Indexes not working as expected - SharePoint 2013

I've got a list with ~10k items in it; I've indexed this on a number of columns and have recently started to see 500 errors when querying the list via REST ($.ajax) despite the queries previously ...
1
vote
1answer
29 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
22 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
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 ...
0
votes
1answer
36 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
26 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
60 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
103 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
49 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
81 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
66 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
167 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
139 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
62 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
47 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
128 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
154 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 ...
0
votes
0answers
25 views

How to add Item e.g. Title, Name, Attachment in List

How to add Item in my attachment script e.g. Title, Name.** I am using this script for attaching file.. Problem is how to add the title and name for another field to add in a list. This is my script. ...
-1
votes
1answer
72 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
65 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
25 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
108 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
54 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
69 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
24 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
645 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
68 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
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
0answers
13 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
82 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
26 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
296 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
240 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
104 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
2k 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
789 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
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
1answer
84 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
41 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
160 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
436 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
44 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 ...
0
votes
0answers
33 views

Integrate Facebook Reviews to Office365Site

I am working with Facebook page reviews, I need to integrate with my SharePoint Page. I used face Book graph API . by that I can get reviews but it needed an access token access token is expired in an ...
1
vote
0answers
259 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
325 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 ...
1
vote
0answers
32 views

Is there an approval process behind the scenes for new pages with CEWP to be activated to allow script tags?

I was doing some coding work through the content editor webpart on a page. The code uses jQuery, and the execution of that page do have some errors, but mostly insignificant ones. The script file is ...
0
votes
1answer
102 views

Error thrown in IE when OnKeyPress event is triggered on a button control of custom edit form

Error: Accessing the 'caller' property of a function or arguments object is not allowed in strict mode On the click of the same button action, I am starting some workflows and at the end, I am ...
0
votes
1answer
76 views

SPO Autocomplete Text Field in Form that renders the Title Column(s) from Ten Lists

I was wondering if there is a way to get an autocomplete text field in a New Task Form that renders the 'Title' column from each of the (10) lists/document libraries in my SharePoint App. Currently, I ...
0
votes
0answers
76 views

connect list info to SVG worldmap in SharePoint

All, I like to connect my Listdata to a SVG worldmap. I have the following code to retrieve my Listitems. <script src="http://dwrd.mindef.nl/sites/SWR000744/SiteAssets/Scripts/jquery-3.2.1.min.js"...