An acronym for Asynchronous JavaScript and XML

learn more… | top users | synonyms

2
votes
0answers
14 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
1answer
21 views

Rest api add to select append sharepoint list is undefined

If alert view then OK, but is add code select append, not working - undefined Here is code: function getListItemById(webUrl,listName, itemId, success, failure) { var url = webUrl + ...
0
votes
0answers
10 views

Is there an intermediate step for executequeryasync?

I'm trying to find a way to display an intermediate result while I'm waiting for the executequeryasync to finish. In ajax I'm able to do this with beforeSend: $.ajax({ beforeSend: function() ...
0
votes
0answers
26 views

AJAX REST filter

I have a SP-List that I want to retrieve data from using Ajax. Everything works as it should but my question is the following: List A have the Status column I want all of the object with status A and ...
2
votes
1answer
43 views

AssignedTo Column multi users via REST-API

Is it possible to set (Update/Create) 2 users to the AssignedTo column in SharePoint Online? I am using REST-API (JS). When I put one user with: AssignedTo "- 1; #USER@company.com" it works, ...
0
votes
0answers
17 views

Javascript calls a web service using Ajax and returns custom error message

The code is using a Javascript calling a web service using Ajax. jQuery.support.cors = true; $.ajax({ url: url, data: { format: 'json' }, error: function() { ...
0
votes
1answer
27 views

Which ajax code runs first

I have two ajax call in my jquery code, I would need one value from the first one to be used in second ajax call. But I observed that the second ajax code is running first. $.ajax({ url: ...
0
votes
0answers
21 views

REST Async responseText different to Sync

When I send a request to http://Sharepoint/_vti_bin/ListData.svc/ListName using a Synchronous request as below the response comes back as a feed with "m:properties" present and easy to extract. This ...
2
votes
2answers
34 views

How do I get my Web Part to automatically refresh

Sharepoint 2010 Enterprise - I have a web part which displays notifications from a list which have the ShowMe flag set to TRUE. Although I have Enable Asynchronous Automatic Refresh checked and the ...
1
vote
1answer
39 views

nested ajax request does not work properly

I have the following code, where I am trying to execute a nested ajax request to display eventually a dynamically created bootstrap carousel. But I think something goes wrong, because those two ...
0
votes
0answers
17 views

Set People picker from AJAX call [duplicate]

I need to set a people picker field with the value from a JSON/verbose Ajax call. Using the below format I am able to set everything from text fields to selection fields but can not seem to set people ...
0
votes
0answers
19 views

Employee Handbook to Sharepoint

I have an Employee Handbook site on our current Intranet. It's all .htm pages. I want to duplicate in SP, but not sure of the best practice. Client wants a Nav/Table of Contents with the links to all ...
0
votes
0answers
18 views

consuming html content of external web application into sharepoint masterpage

I could consume the content (html and css) of an asp.net application from another application with the following Jquery code(I used CORS) : $("#success").load("http://localhost:50710/ .round", ...
1
vote
1answer
34 views

AJAX request to set lookup column from second list

After making an AJAX request, I have been able to populate fields on a form. However I also need to set the value of a look up column to the same value from the second list (LIST A and B both have a ...
0
votes
2answers
46 views

Ajax for getting list items

It shows undefined in the alert().. $.ajax({ // url: "https://sharepoint.com/sites/FE/_api/web/lists/GetByTitle('Features')/Items", url: ...
0
votes
1answer
36 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 ...
0
votes
0answers
43 views

AutoLogonPolicy with XMLHttpRequest() or Ajax

I would like to open a website with XMLHttpRequest / Ajax to get data and paste it to a SharePoint list. The site requires login and I see that • it starts with the original url ...
8
votes
2answers
478 views

Use SharePoint 2013 “Working on it…” during ajax call

I'm trying to use the SharePoint 2013 "Working on it..." during ajax call. This is the code: function ShowWaitDialog() { SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); } ...
1
vote
1answer
41 views

Why does the JavaScript in my *.ascx file not display in CDT?

I want to step through some JavaScript in my *.ascx page, which contains, in part: </html> <script type="text/javascript"> . . . $("#saveData").click(function () { alert('you ...
3
votes
2answers
281 views

Is AJAX Built-in in SharePoint-Online ( SharePoint-Hosted Apps )?

As the title says, can I create a SharePoint-Hosted App and make Ajax calls right away? or do I have to import an ajax library or something like that?
0
votes
1answer
845 views

REST api 403 (Forbidden) error for creating site

I'm trying hard to make work this code: shptService.create_board = function (url, title, description, template) { //ensure form digest shptService.ensureFormDigest(function ...
0
votes
3answers
95 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 ...
2
votes
0answers
125 views

Copying attachments using JavaScript (JSOM or REST)

I've been able to copy documents in document libraries using the "CopyTo" method: https://msdn.microsoft.com/en-us/library/office/dn450841.aspx#bk_FileCopyTo I'm not understanding how I can apply ...
0
votes
2answers
214 views

Can't properly “get” attachment binary for certain filetypes

I am performing a "GET" request for a file on my SharePoint site because I need to be able to copy a list item and then copy each of its attachments. I am able to use this code to get the associated ...
0
votes
1answer
90 views

Filter sharepoint 2010 list view webpart with “date less than” condition

please help if it is possible to filter a sharepoint List View Webpart with a condition "date column less than selected date". With Data View web part it is possible. I also know that jQuery is ...
0
votes
1answer
78 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 ...
0
votes
1answer
84 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
1answer
33 views

Problem Ajax with list 5000+ items

I created a js online in Sharepoint 2013, with $ .ajax with conditions .... $ filter = ... Everything works with the list less than 5000 record otherwise error threshold. The data that I receive are ...
0
votes
1answer
83 views

Cannot run ajax javascript code

I try to run the below javascript code but it does not work. (it does not return the alert pop up) I put the url string into a browser, it return the item info. So, I assume the url is fine. And ...
0
votes
0answers
67 views

How to create ClientContext in .asmx web service called from AJAX

i am developing Sharepoint online on-premise app. Almost all my logic and SP objects manipulation is in the c# codebehind(not JS), but now i need to call my already implemented method from js. I ...
0
votes
1answer
124 views

Get site title and display it search results

I am using display templates to search specific items based on content type and display them in the root site. One of the requirements is to display the site title besides the item. Searching on the ...
0
votes
1answer
178 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
125 views

AJAX Request not firing at Document.Ready

Had a question regarding an AJAX request I'm making via jQuery in my SP site page template. The code in question: //writes CSS classes to body script based on explicitly checked group membership ...
2
votes
1answer
184 views

Use filtered URL in Ajax call to return JSON data

Currently I am working on sort of a JavaScript function library for all things SharePoint to pass around to some of the SP developers at my work. The idea is to just take some simple features I see ...
1
vote
1answer
54 views

Accessing the OnSuccess event for AJAXRefreshView

I am doing a AJAXRefreshView on a particular site page after a button is clicked. The list in question is being refreshed however I am unable to apply some custom styles that have been applied to the ...
0
votes
0answers
37 views

What is callback function in AJAX? How to implement a callback function in PreSaveAction function of SP2013 list NewForm?

I want to store the value of a variable and use it outside the ajax call. But being an asynchronous call it is giving me initial value of that variable. I am implementing my custom code for some ...
0
votes
1answer
58 views

REST Call to get DefaultNewFormUrl

I am trying to make a call to the REST service in Javascript to collect the 'DefaultNewFormUrl' for a specific list. The property is "not returned with the resource" so I need to make a separate call ...
0
votes
1answer
86 views

Ajax 400 Bad request problem

I get a 400 Bad Request from this below code, what can the problem be? 'use strict'; var hostweburl; var appweburl; $(document).ready(function () { hostweburl = ...
0
votes
1answer
34 views

Access php through jquery ajax in Sharepoint

I have the following code within a Sharepoint page $(document).ready(function(){ $.ajax({ type:"POST", url:"http://somesite.ro/helper.php", dataType: 'jsonp', // Notice! JSONP ...
0
votes
1answer
121 views

Progressbar in webparts

I want to show progress in my webpart while showing images. Here is my code in .ascx file <asp:UpdateProgress runat="server" id="PageUpdateProgress"> <ProgressTemplate> ...
0
votes
2answers
60 views

refresh only webpart

I am using Server Side code to do Paging on SharePoint List. I am using Visual Web Part to show items from List. protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) ...
-1
votes
1answer
43 views

Get the proxy authentication once we click on a specific page

SharePoint 2013 request: we need to display the proxy authentication window once we click on a specific page link "/index.aspx" .... it can be done using JavaScript ???
0
votes
0answers
37 views

Document Follow custom implementation slowing down the page performance

Let me explain my scenario : I am pulling the documents using search rest api and populating on the page. Each document having a (custom) follow icon. So, that he can follow/un-follow the document. ...
3
votes
1answer
463 views

sharepoint 2010 get value of choice field through api call

I have a sharepoint list ImageList, i have a column which stores its type The column name is ImageType the choices are "profile pic","thumbnail" etc i want to fetch these choice values for this ...
0
votes
0answers
232 views

Calling Cross Domain Java Based web service by JQuery AJAX from SharePoint 2013

I am trying to call the Java based Web Service by Jquery Ajax, The URl of the Service is "http://vmABCapp01-staging.domain.com:7083/UserIDCheckService/CheckUserIDServiceImpl". The Jquery Code to ...
0
votes
0answers
95 views

Javascript calls C# code and parser error

I am trying to get my javascript to call some C# code that I have added to my Sharepoint site. Unfortunately every time it runs, I'm not getting the "Success" i had programmed in. Instead I get this: ...
0
votes
0answers
130 views

Progress bar in multiple file upload not getting updated

I am using this link to upload multiple files to my sharepoint library. I created a visual web part and referenced the required libraries as shown below : <SharePoint:CssRegistration ...
0
votes
1answer
171 views

Get image from SharePoint by URL

I try to get an Image from SharePoint by using JavaScript code. I have the complete URL of the image which is stored in a SharePoint Assets Library. My app is SharePoint hosted. This code does not ...
1
vote
1answer
248 views

Get the permission list for a group using jQuery AJAX requests REST API

How can i get the group permissions for a list using an AJAX request with the REST API? I could add or remove permissions for the group but i want to know the actual permissions of the group over the ...
1
vote
3answers
509 views

Not able to access sharepoint list using rest api

This is my code function getListItem(url, listname, id, complete, failure) { // Getting our list items $.ajax({ url: url + "/_api/lists/getbytitle('"+ listname +"')/items", ...