An acronym for Asynchronous JavaScript and XML

learn more… | top users | synonyms

11
votes
4answers
6k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
0
votes
0answers
11 views

Ajax UpdatePanel not getting updated in webpart

I have used an AJAX UpdatePanel and Timer in a sharepoint 2010 custom webpart. The problem i am facing is that the Status Label i have set does not get updated. <asp:UpdatePanel ID="UpdatePanel1" ...
0
votes
0answers
19 views

SP.RequestExecutor callback / Promise not working as expected

I am not sure what I am doing wrong here, I have a restHelper.js self calling function which contains all of my helper functions and an object for all my cached data. I need to run an Asynchronous ...
0
votes
1answer
30 views

Unable to get User details in SharePoint 2010

I am using following code to get user details.... function getUsers() { $.ajax({ url: "/_vti_bin/ListData.svc/UserInformationList", type: "GET", headers: { "...
6
votes
1answer
1k 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="...
0
votes
2answers
48 views

Display REST Data

I am running into few issues. Issue # 1: When I use the following REST endpoint uri in chrome I get XML back. However, IE throws an error (IE cannot display this feed). I downloaded REST API Browser ...
-1
votes
1answer
44 views

Status Code:500 Internal Server Error, while calling a webmethod in SharePoint 2013

I am trying to call a webmethod written on application page but getting an error, Status Code:500 Internal Server Error JavaScript: <script type="text/javascript"> $(document).ready(...
0
votes
1answer
752 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
4answers
3k views

AJAX ModalPopupExtender in SharePoint 2007 Web Part

I am trying to get an AJAX ModalPopupExtender to work in a SharePoint web part but I'm not having any luck at all. I thought it might be something else in my web part causing it so I've created a ...
0
votes
1answer
25 views

Get parent site calendar list data from SharePoint app

I am trying to get parent site calendar list data from SharePoint app page. I have used one function for getting data. THe function name is GetParentSiteListData(). I can call this function when ...
0
votes
1answer
38 views

Save a canvas image to SharePoint server

I have a page where users can paint on it. This area uses HTML5 canvas. Now I want put an button for users to send that image to the server. I know I can do this by ajax in client side and web-...
1
vote
3answers
1k 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 + "/...
1
vote
1answer
1k 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.
0
votes
1answer
40 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
26 views

Why is ID is not defined POSTing to Sharepoint 2013 list?

My script: I have got a list that I want to populate with a HTML form. I'm using the following but I keep getting ID is not defined in google debugger. <script> $('#submitdata').click(...
0
votes
1answer
31 views

Why can't my value pass through JSON to SHarepoint list?

With the follwing code, I am trying to update a list. Title succesfully passes but PerOrBus does not. <script> $('#submitdata').click(function(){ var itemProperties = { '...
0
votes
1answer
12 views

How can I resolve “___” is not defined when importing form into list?

My Code: <script> $('#submitdata').click(function(){ var itemProperties = { '__metadata': { "type": "SP.List" }, "Title": FirstName }; $.ajax({ ...
0
votes
0answers
22 views

Why is ListName is not defined when i'm trying to use JSON / AJAX to post to a table?

The Chrome debugger error: {"error":{"code":"-1, System.ArgumentException","message":{"lang":"en-US","value":"List ' ChangeOfAddressListList' does not exist at site with URL '_______/sites/mySite'....
0
votes
0answers
42 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' ...
2
votes
2answers
9k views

Custom JSLINK rendering template - how do you get ajax paging working?

So I followed this post to implement paging in my custom JSLINK rendering template, and got that working great. The only downside to it is that the paging actions are full page post-backs whereas on ...
0
votes
0answers
24 views

How do I get the linked to title field in a rest call?

How do I get the linked to title field in a rest call? Also, will there be an additional step if this field is on another list? I've already expanded and included the specific field in my current ...
0
votes
0answers
17 views

using rest and ajax , i need to get admin field,which has creator name [duplicate]

qString= null; var qString = getdetails(); $( document ).ready(function() { if(qString != null) { $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/...
0
votes
1answer
37 views

Set Microsoft Ajax Options, SP.RequestExecutor.js

I´m using SP.RequestExecutor.js to make CORS calls in a sharepoint-hosted add-in. executor.executeAsync uses the Microsoft Ajax library, right? If it's correct, is there a way to set Ajax options, ...
0
votes
0answers
9 views

SP07 - how to use AJAX in SharePoint 2007

I want to use AJAX in SharePoint 2007 for webPart solution. My webPart is a Form where I input a data. I want where click buttonAdd, only my form to be refreshing. How to do this with "easy-way". ...
0
votes
1answer
41 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 ...
0
votes
0answers
42 views

Get admin(user)name from list item via REST API

While retrieveing list items using ajax rest call, I am not able to get admin (user)name, this is the code qString= null; var qString = getdetails(); $( document ).ready(function() { if(qString != ...
0
votes
0answers
23 views

Not able to get “Address” field as it is rich text and multi line column.Error occured :“undefined”

{ $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/getbyTitle('My list')/items/? $select=Address &$filter=ID eq "+qString, ...
0
votes
1answer
59 views

code to get title from list and assign to txtbox..but control doesn't reaches ajax block

var qString = null ; $(document).ready(function () { try { getDetails(); } catch(e) { alert("error occured at ready method" + e.message); } }); if(qString != null) { $.ajax({ ...
0
votes
4answers
35 views

how to get this error solved? error is saying …expected identifier in function getdetails

Below Code giving an error called "expected identifier in function getdetails" $( document ).ready(function() { qString = getdetails(); }); function getdetails( { var result = window....
0
votes
3answers
190 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
26 views

filtering webservice request with viewXml

Situation I have a Ajax query that gets all items from my list it gets all items (1000 ish) and the query alone takes about 1.3 seconds of the total load time of 1.5 seconds. Problem I know this ...
0
votes
1answer
47 views

please convert following code to ajax and rest services [closed]

<h1 align="center">My List</h1> <table id="maintable"> <tr> <td>Name</td> <td> <input type="text" id="NameId"/> </td> <td>Age</td> <...
1
vote
2answers
76 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
0
votes
1answer
44 views

SharePoint Rest API and Javascript Issue

I am using SharePoint 2013 Enterprise. I have 3 List. Now I am creating custom form which fully in jQuery and javascript. From the 3 list, 2 list works as detail so I have two tables where we can add ...
1
vote
1answer
57 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
2answers
169 views

Querying SharePoint search for all departments with REST API

I currently have an ajax request set up in my javascript to call the search API but this only gives me departments matching whatever I input for query: $.ajax( { url: _spPageContextInfo....
0
votes
1answer
41 views

SharePoint Online api

I made a rest call to list site my users have access : url: '/services/_api/web/webs/?$select=title,ServerRelativeUrl,effectivebasepermissions&$filter=effectivebasepermissions/high%20gt%2032', ...
1
vote
2answers
75 views

Populate navigation menu with ajax

I have a Sharepoint Online site with about 100 subsites. I want to populate the navigation menu with only the top 5 subsites and 2 static subsites. I created an empty navigation column named ...
1
vote
4answers
205 views

change SharePoint list field color using jquery code base on value?

I am working with SharePoint list and I need to change the Number field color if it is greater than 60. I tried to change the code below but it did't work. I also checked all answers but none of them ...
0
votes
1answer
62 views

changing field values by js // ClientFormPostBackValue // webparts

i have kinda strange issue here. i have an item form. on that form i placed a webpart list view. this webpart list view is binded to my item by ID. this ID i placed in a simple input text field. ...
1
vote
1answer
94 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
40 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 ...
0
votes
0answers
40 views

WarmUp script that handles ajax / rest request - System.Net.WebClient

It seams that my warmup script does not work as expected. In my personal.aspx (mysite) we got several ajax /rest request that list several user data (lists, user properties, etc) that runs on document....
0
votes
2answers
78 views

Call the server side validations on SharePoint List Form

I have some custom JS code that would help me validate fields on a list on the client side. Just in case, if fields pass the client side validations, I'm displaying an alert saying "Your item has been ...
2
votes
1answer
735 views

Javascript/Ajax errors on custom master page

I have a custom master page using a few JS utilities like jQuery and skel.js that has been experiencing some errors whenever the page loads. The errors are transparent to the user, but show up in dev ...
1
vote
0answers
15 views

jquery plugin defaults with ajax.load [closed]

Im creating a jQuery (ajax.load) plugin which triggers the plugin based on a set data-attribuut. The value of this attribute overwrites the default setting. All works fine, but: 1) if the value is ...
4
votes
1answer
175 views

AJAX/Rest only returning 100 items instead of full list

On an onchange event on a select box (filtered lookup column where the value is the item ID) i make an AJAX call to auto fill certain fields on a form. This works great except for it only returns 100 ...
2
votes
2answers
33 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
56 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 + "/_vti_bin/...
0
votes
0answers
16 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() {$("#...