An acronym for Asynchronous JavaScript and XML

learn more… | top users | synonyms

0
votes
0answers
9 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
19 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
69 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
17 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
39 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
39 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
62 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
45 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
19 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
19 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
36 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
35 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
27 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
56 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
30 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
33 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
20 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
244 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
104 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
59 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
68 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
69 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
102 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 ...
0
votes
3answers
171 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", ...
0
votes
1answer
15 views

AJAX.NET error only affecting certain users

I have a couple of users who are reporting "ASP.NET AJAX client-side framework (ScriptResource.axd) failed to load" error on some of our SharePoint pages. Only affecting certain uses, majority get ...
0
votes
1answer
36 views

Internal Server Error for an ajax request from Visual Web Part to application page

I have Internal Server Error in response to an Ajax call. The request is sent from a Visual Web Part, inside a solution, towards an application page : The application page has this method: ...
2
votes
1answer
48 views

HTTPHandler Note Hitting the the breakpoint in VS2010

I'm trying to send some Async Data to the server form SP webpart. I added the HttpHandler to the Layout folder in webpartproject and registered it in web.config file for the SharePoint site. But the ...
0
votes
1answer
99 views

Upload javascript file to sharepoint online library saved in wrong format

I am trying to Upload a myfile.min.js to sharepoint online using JavaScript using JSOM but its stored as wrong encosing format var req = jQuery.ajax({ url: sourceFileItem + '?ver=' + ...
0
votes
3answers
804 views

Can we retrieve list data using angularjs in sharepoint 2013 hosted app?

I want to retrieve list data by making http calls through angularjs. Is it possible following is my code in Visual Studio for sharepoint hosted app, <script type="text/javascript" ...
0
votes
0answers
102 views

SharePoint 2013 - In Page Image Pop Up

I would like to implement some image pop ups using jquery, AJAX or similar to perform actions as shown on this page: http://dimsemenov.com/plugins/magnific-popup/ It is not desirable to have a new ...
0
votes
1answer
39 views

How to pull the user profile image?

Using the _api/SP.UserProfiles.PeopleManager I've gathered the information needed to display my user profile image and presence. pInfo is a variable that contains the property information needed to ...
0
votes
0answers
92 views

Ajax calls not working in ShowModalDialog

I have Hyperlink in my masterpage, and when users clicks on it, a modalpopup should display with updatePanel divfrom MasterPage. Here is the MasterPage div that has UpdatePanel - <div ...
0
votes
0answers
50 views

Dynamically change workbooks in sharepoint excel web part

I have created a custom ajax visual webpart that hosts an Excel workbook(say summary.xlsx) using ExcelWebRenderer class and i have LinkButton in the same webpart. My requirement is - when users clicks ...
0
votes
0answers
26 views

How do you expose a Custom Service Application method via JavaScript/JQuery

I've currently enabled all of our Web Service calls using Application Pages / Web Methods. It works well but I'm pretty sure that there is a lot of overhead when it comes to getting my JSON back. ...
0
votes
2answers
82 views

Sharepoint 2013 and ajax problem

I used that Ajax branding technique to load list items or any document library item into my design in Sharepoint 2010 now im working on 2013 and with the same technique i got failure $.ajax({ url: ...
0
votes
0answers
92 views

Access denied while calling external URL ajax call

I got the access denied error when i am calling external URL from Ajax call. it is working fine without SharePoint 2010. <script> function httpGet(theUrl) { debugger; var ...
0
votes
1answer
65 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
166 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 ...
0
votes
1answer
157 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' ...
0
votes
1answer
527 views

Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: panelsCreated[1]

I am using JavaScript to pull events for the current day of the week. I am leveraging SP.Services to do this. The problem I am having seems to be the same that a lot of others have experienced ...
1
vote
1answer
87 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 ...
2
votes
1answer
147 views

Update Panel not working in Sharepoint online sandbox solution

I have added a UpdatePanel on the webpart and then when I upload a .wsp to office 365 then & open the page(which contains this webpart) then error occur: Web Part Error: Sandboxed code execution ...
1
vote
1answer
670 views

consuming external web services(https) in share point hosted apps resulting cross-domain issue

We are not able to consume external web services deployed in a separate domain from sharepoint hosted apps,using jquery ajax.
1
vote
2answers
669 views

Ajax Odata 400 bad request

I get a 400 Bad Request from this code, hard to debug, what can the problem be? function saveSelectedAnswer(radioValue) { var requestUri = _spPageContextInfo.webAbsoluteUrl + ...
2
votes
2answers
1k views

How to use jQuery and OData to expand multi user field in SharePoint 2013?

I am using jQuery to query a Sharepoint 2013 list and expanding the AssignedTo field (which is a Person or Group field type) in order to get the user id. I was able to get the code working when the ...
0
votes
1answer
177 views

Ajax CAML Query 400 Bad Request

I get a 400 bad request with this ajax call, i tryied the caml query with caml designer and it should work. What is the problem? var soapEnv = "<soapenv:Envelope ...
2
votes
0answers
450 views

How to properly cache, validate, refresh Access Tokens?

I'm a complete newbie to SharePoint Provider-Hosted Solutions and their authentication logic. My App is an ASP MVC Solution. I run many AJAX-Calls from Client-Scripts to my Controller to interact with ...
1
vote
2answers
989 views

Pulling user/group field data from SharePoint list using REST, jQuery, Knockout.js Sharepoint 2013

I'm trying to make an interactive task board based on the task list app in SharePoint 2013. The task lisk includes fields like "Title","Description","Status","% Complete","Due Date","Assigned To", ...
0
votes
1answer
1k views

Cascade drop down lists in SharePoint 2013 using jQuery, REST and AJAX

This is what I have so far: Loading the States in the State lists: var ItemStateDD, ItemCountyDD, ItemIDDD; $(document).ready(function () { //state populate $.ajax({ cache: false, ...
0
votes
0answers
37 views

Making ajax callback from custom field client-side code

I am creating a custom field for SharePoint 2013, following this (and similar) walkthroughs: http://msdn.microsoft.com/en-us/library/jj163799.aspx The field is just an extension of SPFieldText and I ...