An acronym for Asynchronous JavaScript and XML

learn more… | top users | synonyms

0
votes
0answers
11 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
8k 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
20 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 + ...
0
votes
1answer
23 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
8 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
0answers
14 views

xmlhttprequest cannot load“URL”. No 'access-control-allow-origin' header is present [on hold]

I am trying to get files from a website as blob.My code works perfectly on IE whereas on chrome the below error occurs: XMLHttpRequest cannot load http://url. No 'Access-Control-Allow-Origin' ...
0
votes
1answer
18 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
30 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
21 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
57 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
33 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 = ...
0
votes
3answers
80 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
22 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
724 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 ...
0
votes
1answer
41 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
51 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 ...
5
votes
1answer
963 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" ...
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 + ...
0
votes
1answer
43 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
54 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
157 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: ...
0
votes
1answer
32 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
65 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
113 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
35 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
60 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 ...
1
vote
0answers
32 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
25 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 ...
0
votes
2answers
60 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
663 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
14 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
132 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
32 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
44 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
13 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
31 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
76 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
33 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
34 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
26 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
43 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 ...
0
votes
0answers
18 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
21 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
24 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
46 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
64 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
2answers
6k views

The control with ID 'XXXXX' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it

I am getting the layout issue for calendar webpart in my page . with the error message : The control with ID 'XXXXX' requires a ScriptManager on the page. The ScriptManager must appear before any ...
0
votes
1answer
61 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
3answers
1k views

Many 'group by' webparts intermittent loading

I have several list webparts (7-8) that all have documents that are "grouped by" a single field. The problem I'm having is that the expand button will sit at "Loading" and won't load! Some load ...