An acronym for Asynchronous JavaScript and XML

learn more… | top users | synonyms

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: { "...
0
votes
2answers
50 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
46 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
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
39 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-...
0
votes
1answer
43 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
27 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
32 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' ...
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
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
38 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
1answer
43 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
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 ...
0
votes
3answers
192 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
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
4answers
214 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
64 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
97 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
41 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
80 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 ...
1
vote
2answers
76 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
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
176 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
58 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() {$("#...
0
votes
0answers
32 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
165 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
40 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() { alert('...
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
28 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
65 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
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
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
22 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
31 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", ...