Questions tagged [ajax]

An acronym for Asynchronous JavaScript and XML

100 questions with no upvoted or accepted answers
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="...
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 ...
2
votes
0answers
162 views

Troubles with Ajax loaded Content

I've made a content box with a div("target" Element) and a script link which is loading following code. Also I load after the start a HTML file with the form of my box, purpos of the box is to show ...
2
votes
0answers
97 views

custom rest service throws an error in SharePoint 2013

I have come into a problem with a project at the customer. This project was built by someone else and he has left the company. There is a rest service which runs in a different host name, but in the ...
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. ...
2
votes
0answers
556 views

Cannot create list item. Error 403 (forbidden)

Am getting an error 403 when am trying to create a list item. The uri is valid and am able to retrieve list items using 'GET' method. Probably am doing something wrong. Why is the ajax call returning ...
2
votes
2answers
74 views

rest ajax sharepoint designer

I am trying to apply and use JQuery news ticker from SharePoint list for which I need to use REST Ajax call, I have tried some codes from net but none of them works, so I am confused where to put the ...
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
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
729 views

AJAX REST call to POST to SharePoint list generates error

I am having difficulties with the JQuery implementation of AJAX to make REST calls to POST data to add items to my SharePoint list. Using 'GET' to retrieve information gives me no issues. Given the ...
1
vote
0answers
16 views

I want authors to be able to edit some items on the site using REST api

I am new at using REST api and fairly new to sharepoint. I got assigned a project to design a home page, which I already did and my boss wants the authors to be able to edit some of the fields on the ...
1
vote
0answers
23 views

How to Get User-Generated Columns from Ajax

Is it possible to determine which columns in a SP List or document library were custom generated by the user? I'm essentially trying to recreate SharePoint's front end in my app, and I want to add ...
1
vote
0answers
29 views

Are there any reasons not to enable AJAX on a web part?

What are the potential drawbacks one would face when Asynchronous Update or Load are enabled for a web part? (SharePoint 2013) For example, if I use jQuery to make my lists look nice or add some ...
1
vote
1answer
20 views

fetching columns from assetLibrary

I have a assetLibrary , which consist of videos. I have a custom field called Description. `${rootUrl}('Vidz')/items?$select=Description&$top=2` this is the url i am passing via ajax call ,but i ...
1
vote
1answer
756 views

Sharepoint 365 - API Updating List Item

I am trying to update a List Item in Sharepoint using the Rest API but am getting the following error: The type of data at position 0 is different than the one expected. Here is my code. The type ...
1
vote
0answers
2k views

requested an insecure XMLHttpRequest endpoint. This request has been blocked; the content must be served over HTTPS

I am making an ajax call from Sharepoint site to access data from a public facing website. $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: 'http://...
1
vote
0answers
2k views

Passing parameters in a jQuery ajax call to an Application page Webmethod

I have created application page in SharePoint. In application page I have a WebMethod. I'm calling that web method using ajax call it works fine. Now I'm trying to pass parameter to web method, but ...
1
vote
0answers
950 views

How to get a url to the site usage reports?

I want to get a url that downloads the site usage reports in sharepoint 2013. I found the page that ends like http://yoursite/_layouts/15/Reporting.aspx?Category=AnalyticsSite There I can click the ...
1
vote
1answer
152 views

How many items (LIST) this current month

Its possible to know how many items will end this current month? with REST GET URL $filter= Test GET URL: /_api/lists/getbytitle('nameList')/items?$filter=Date_x0020_de_x0020_remise%272017-02%27 ...
1
vote
0answers
105 views

Redirection not working in IE sometimes

I need to override the redirection functionality of "Finish" button in Survey. I have included Survey.js into my site. The code is: $(document).ready(function(){ var publishButton = $("input[id$=...
1
vote
0answers
56 views

Cross domain query *NON* SharePoint App senario

I've been racking my brain about this and I am hoping others may help. I have two host-name site collections http://site1 and http://site2. These are both within the same SharePoint Web Application ...
1
vote
0answers
352 views

jQuery .ajax GET from application/atom+xml works in Chrome but not IE

I'm trying to build a dynamic table in SP 2010 using the ExcelRest API and jQuery $.ajax. It works like a charm in Chrome but fails in IE. The relevant code: $(document).ready(function() { $....
1
vote
0answers
56 views

Unable to send parameters while consuming a webmethod from a content editor web part using jQuery Ajax

I have added the code inside a Content Editor WP to consume a [webmethod] that is written in the application inside a VS 2013 sharepoint 2013 project. <input onclick="callWebServiceMethodAjaxTest(...
1
vote
0answers
66 views

SharePoint List Create item in Main list & Look up list using Javascript

I want to read an excel file & create items in main list and lookup list. The main list is creating an item, but it's not returning the ID synchronously. I tried Success callbacks & deferred, ...
1
vote
0answers
927 views

Why "The property '__deferred' does not exist on type 'SP.SecurableObject'" message appears when trying to update a sharepoint list item?

I know that updating an item in sharepoint list by using REST API should be very easy, but for some reason, I have not been able to do it. I keep getting "400 Bad Request: The property __deferred ...
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&...
1
vote
0answers
170 views

Call JavaScript Function after list data has successfully updated via quick edit

I am trying to call a custom JavaScript function after content is saved into a list via quick edit. Once the data is saved, I would like to make an AJAX call to get the newly updated items. I do not ...
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 ...
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 ...
1
vote
1answer
303 views

Rich Text field duplicated on each partial postback

This problem is a bit tricky to explain, I'll try to make myself clear... I have a custom list which includes different field types including a Rich Text field and a custom field type called ...
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 ...
1
vote
0answers
1k views

Updatepanel with ajaxcontroltoolkit postback issue on Sharepoint 2013

We have an custom web part that stores some information in the view state, and uses Update Panels. We have rare, intermittent bug that occurs in SharePoint 2013 only whereby sometimes, after button ...
1
vote
0answers
214 views

Retrieve Profile Picture with REST

Hi i would like to show the profile pictures of the user that have created the item in a list, here is my code: <script type="text/javascript"> $(document).ready(function() { var ...
1
vote
0answers
739 views

What's wrong with the manual refresh web part option?

I have a task list in SharePoint 2013 that I have enabled the AJAX manual refresh button for. This option can be found by editing the list web part, then going to AJAX options and then ticking "Show ...
1
vote
1answer
528 views

SharePoint 2010 - How to get document ID using SPServices SQL search query?

Using SPServices to make search requests, I am building the query like this: var queryText; queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' Revision='1000'>"; queryText += "<...
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
0answers
464 views

update xml file within doc library using jquery ajax

I can read values from xml files that are posted within a document library using jquery ajax, but can I update those values then save/post them back into the document. i.e. can I update the contents ...
1
vote
0answers
85 views

Sharepoint Webaprt

How to call sharepoint webpart usercontrol method in AJAX $.ajax({ type: "POST", url: "FundUserRegister2.asmx\validateEmail", data: "{'strMailID': '" ...
1
vote
0answers
171 views

How to Reconcile External Data and Multiple Values for a List Item?

I am currently developing a solution that requires me to integrate a SharePoint 2010 list (generic list type) with items from a SQL Server database. In addition to this hypothetical field being ...
1
vote
0answers
445 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...
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
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
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 ...
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('...
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
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
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
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 ...