Questions tagged [ajax]

An acronym for Asynchronous JavaScript and XML

Filter by
Sorted by
Tagged with
8
votes
1answer
2k views

Ajax Calendar Extender Position is not working in SharePoint Webpart

I am using Ajax Calendar Extender, but it is not pop up next to textbox, it is appearing int the middle of the page. Here is the code: <asp:TextBox ID="dtEnginerring" runat="server" ToolTip="...
1
vote
1answer
1k views

enable ajax on listview web part added in feature upgrade

is there an option how to enable ajax functionality in listview web part type added by code? Iam facing problem where we added 2 list view web parts on the page and they behave really strange. I read ...
1
vote
1answer
1k views

Sharepoint GetUserProfilePropertyFor not returning any results

I am trying to get the SharePoint 2013 API for GetUserProfileProperty, when I put the below url into a browser it works finr, however when i run the below code, I get no result (I do get a return, but ...
0
votes
3answers
2k views

Not able to access C# method from ASPX page

I am trying to access a C# from my ASPX page that is already called from a web part for sharepoint foundation 2010. I am following instructions from the post here My breakpoint in the function isn't ...
0
votes
0answers
16 views

SharePoint Online REST API using jQuery Ajax POST not working

I am using this code to POST into a SharePoint list. The code goes into the success function, but does not create a new item in the list. Can anyone help? function AddPoints(ID,Points) { var data =...
0
votes
0answers
4 views

SharePoint SP Services error

I am getting an error - $(...).SPServices is not a function at AddListItem - with the below code. I have referenced the SPservices js correctly function AddPoints() { $().SPServices({ ...
0
votes
1answer
1k views

How do I send data to a lookup field with ReST? SP2013

I've been working with a jQuery AJAX call to post data to one of my SharePoint lists. One of the fields in this list is a look-up field. In forming my JSON data to push to the list I was able to ...
0
votes
1answer
4k 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
2k views

How to Sign-In with Sharepoint from the Javascript?

I used the following code to access the sharepoint from javascript var soapDataString = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/...
0
votes
3answers
5k 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
23 views

POST to SharePoint Task List Results in Bad Request?

I am loading all my data with a GET to populate to a DataTable. When a row is selected and drawn to a new table, it deletes from the DataTable as well as the SharePoint list it came from. I am trying ...
0
votes
1answer
1k views

How to have a list auto update once a week and then email the people in the list?

There is a meeting that occurs every week, but has a rotating list of members. So one person from each department goes one week, and the next week it is a different person from each department, and so ...
1
vote
1answer
860 views

Sharepoint 2013 Query Filter Using POST

I'm trying to use SharePoint 2013 REST api to query using POST method. I have found few solutions to query SPListItems using CAML but i cannot find a solution to use Linq like queries. I'm trying in ...
3
votes
1answer
1k views

Filter sharepoint list using multi line text field

I'm trying to filter a sharepoint list using ajax api. So one of the filtered field is Multi line text field (FieldType.Note) , after performing request it throws an error telleing that the field ...
0
votes
0answers
16 views

How can one fetch values via JavaScript from a SharePoint list with columns that have values stored via term store

I have a jqGrid where 2 columns have values which come from the termstore. The values in the column "Mandant" and "Vertragspartner" are stored via term store management tool and ...
2
votes
1answer
1k views

Why is my Ajax call returning a 500 Server Error?

I'm currently building an application page for a SharePoint 2010 site. One of the methods on this application page retrieves the User Profile information from the server and displays it to the client. ...
1
vote
1answer
1k views

How can I loop through a json result by substituting field/column names with a variable

How can I loop through a json result by substituting column names for a variable End result: I'm building a table from a list (~25 columns). I want to attach custom classes to each cell based on the ...
1
vote
1answer
872 views

Sharepoint REST api: wasn't $.Ajax supposed to make asynchronous calls?

I don't understand why my code is running synchronous. At least it is what the attached print-screen shows. Are my assumptions correct? <script src="../SiteAssets/js/lib/jquery-2.2.0.min.js&...
0
votes
1answer
949 views

Ajax Post not working

I created a list from appweb to hostweb and the list url is without "lists/" I then trying to use ajax call post on my startsite (not from the app) but i get following error: 400 bad request x.support....
1
vote
1answer
120 views

How to deploy SharePoint solutions using different versions of ajax extensions in a common SharePoint server?

We have a common SharePoint server which runs an internal SharePoint site. Our teams deploy their SharePoint products in the server and add it to our site. Some products user .net framework 2.0 and ...
0
votes
0answers
7 views

How to store content of redirected page into a popup form

This is my Webpart in Sharepoint workbench Clicking on the Task-name , redirected to the new page with default pop-up Form This is my redirected page with default pop-up form Is there anyway to show ...
0
votes
1answer
123 views

AJAX Request to sharepoint REST API But receiving CORS error

I want to request a sharepoint server with ajax but I get an CORS error : How can I solve this issue please $.ajax({ url: "http://myserver.com" + "/_api/web/Lists/GetByTitle('...
1
vote
0answers
46 views

Unable to show progress bar using SharePoint REST API

I am trying use XMLHttpRequest to show a progress bar when uploading files to a SharePoint list via REST api. The same code works on this codepen even without the parser.php file. Just trying to show ...
1
vote
3answers
6k views

Jquery is not working on sharepoint date time control

Hi In my application page i have a sharepoint datetime control. I am using jquery on text changed event to calculate the number of days and displaying in a text box. Now i want to fire the same event ...
0
votes
1answer
553 views

Filtering listview using React Sharepoint

I am trying to display data in react-data-table-component according to the input given in the search field using Rest API. For eg: If a user enters name of the person the react-data-table-component ...
0
votes
1answer
176 views

How to enable Cors with URL Rewrite Sharepoint 2016?

I am getting CORS policy error. I am trying to use URL Rewrite plug in. I have IIS 10. I tried the examples(links) below, but it still didn't work. So What can i do more? https://techcommunity....
0
votes
1answer
251 views

How can i find the Lookup Column id when i pass the data to REST API?

As shown in some examples I must use lookup column ID when i pass data to Rest API. But I cannot find what the lookup column's id. So How can i add this id to data in rest api? JSON.stringify({ '...
0
votes
0answers
79 views

I get CORS error in SharePoint. I also changed web-config but nothing happens

I call AJAX request and the browser got CORS error. I tried to add "Access-Control-Allow-Origin" in IIS web.config. But it doesn't work. I have two servers. My AJAX is true only when I have ...
0
votes
1answer
48 views

AJAX POST Call to More Than One SharePoint List

I have been working on a project for quite some time now. I have found this post somewhat useful, but am unsure if it is correct or not for my utilization. Functionality: Read in SharePoint list ...
0
votes
1answer
134 views

AJAX POST Request to SharePoint List from HTML Form

I have been working on a project for quite some time now. Functionality: Read in SharePoint list items from 8 different subsites with a GET request. Populate those items in an orderly(grouped) ...
0
votes
1answer
33 views

_x0020_ Not Working in AJAX

so I have 8 different SharePoint lists I am pulling from. And for aesthetic purposes I want to change the listname from something like "Program1" to "Program 1" as it doesn't ...
0
votes
1answer
123 views

SharePoint How to return item field value by Ajax

Good day, I have the List. The List has checkbox field "DocOrg". The user must select checkbox "DocOrg" value and the script must send ajax query to another list, find another list ...
0
votes
1answer
247 views

Create new list item with REST API and get item ID in function callback

Sometimes I need to create a new item with an attachment to a list in Sharepoint by using REST API. What I used to do to achieve this task was to first create the item in the Sharepoint list by using ...
1
vote
1answer
66 views

OnSuccess of Ajax request check if array contains data

I have an Ajax request, when it gets to on success function I start to do things with data.d.results like reading through and filtering in another REST API. However sometimes data.d.results.ID for ...
0
votes
0answers
37 views

SharePoint Document's Library metadata duplicates after REST call

I am making a POST ajax request to a SharePoint Document Library folder to save a file along with some metadata. The file and the metadata are saved correctly however, the metadata are sometimes(not ...
0
votes
1answer
1k views

Call External Web Service Using REST

I want to access external web service using ajax call. I access http://services.odata.org/Northwind/Northwind.svc/Customers web service in ajax call on site pages. but it is giving me error ...
3
votes
2answers
15k views

Getting this error: An entry without a type name was found, but no expected type was specified

I am new to sharepoint.I am getting below error on ajax call i dont know where it is occuring. "{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client.InvalidClientQueryException\",\"message\":{\"lang\...
0
votes
1answer
16 views

SP2016: How can I add visit counter for documents?

My SharePoint site has anonymous access and extended for internet. I want to stroe anonymous number of visits for each document (such as Images, Videos, and etc.) and show to all anonymous visitors. ...
0
votes
0answers
33 views

Adding multiple Items to a share point list with javascript

I have a issue with a bit of code and Chrome, I have this function below that takes the array softArr and adds each item to a sharepoint list function testAdd(softArr) { console.log("Entered testAdd"...
0
votes
1answer
472 views

Unable to grab files inside folders on SharePoint using PnP js

Does anyone have some reference on why I'm unable to pull in files from a folder in SharePoint? This is what I have so far, this will be my PnP js call (I don't I'm not doing something right) <...
1
vote
2answers
2k views

Corrupt or blank file when downloaded from Sharepoint using rest API ajax call javascript

I am trying to download a file from Sharepoing using ajax call from html page. I am able to upload successfully but when I try to download a file, in case of text file, the download is successfull and ...
1
vote
1answer
64 views

Best way to update all the items in a Sharepoint 2013 Document Library through REST API

In a web application I am rendering a list of documents coming from a Sharepoint 2013 Document Library (the number of documents can vary, approximately, from 5 to 50). The user needs to be able to ...
1
vote
1answer
30 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 ...
1
vote
1answer
716 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
1answer
21 views

How to do an if/then in to handle if a Parameter isn't being passed to the api

I have a SharePoint 2016 page that expects a parameter and dynamically builds the url for the API call based on that parameter. But, I'm struggling with what/how to do an if/then in my ajax to handle ...
2
votes
3answers
39k views

How to get list items using Ajax and rest services

Please let me know which "query" to be used...i just copied a sample code from net... please guide me as I am new to ajax and sharepoint function getListItems(url, listname, query, complete, failure) ...
0
votes
1answer
224 views

How do I insert a value in a radio button based choice column in a SharePoint 2013 list using REST API in JavaScript?

Here are the columns I have in the backend list. Here's how I am sending the data to the backend list through a POST request using AJAX. var item = { __metadata: { type: "SP.Data.ListNameListItem"...
5
votes
1answer
7k 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.
0
votes
1answer
67 views

Using AJAX to get SharePoint group user names? [duplicate]

Very often Ajax is used to get list items, delete them, update them etc. I want to know how I can use ajax to get the usernames of a specific SharePoint group. (Just printing them on the console is ...
0
votes
2answers
337 views

Trying to get an Excel document through ajax, running into async issues

I'm adding JavaScript to a SharePoint and I'm trying to write a function that gets an Excel document, or rather the data in it, from a library. I've already figured out how to do that, but the files ...

1
2 3 4 5
7