An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

0
votes
1answer
32 views

ListData.svc not pulling all items from the list

I creating a map using Highcharts and jQuery. The data is being pulled form SharePoint. Everything works just fine, except the fact that the list which contains almost every State is bot pulling all ...
1
vote
0answers
41 views

SharePoint DateTime Control Change Event

I have SharePoint DateTime control and I want to execute some code whenever the user changes the date using JQuery or JavaScript. Thanks
0
votes
1answer
31 views

Appending stylesheet from master page to all the iframes(App parts)

I am trying to append stylesheet from master page to all the app parts included in the master page using javascript. Here is the piece of code i worked upon: var d= frames[0].document; d.open(); ...
0
votes
2answers
63 views

In SharePoint 2010, is there a way to display the total number of items that were submitted for the current month?

Example: I entered 10 items in a list this month and now I would like to see the number 10 display in another web part in another page. I don't want to see the individual items I just want to ...
2
votes
1answer
38 views

i am retrieving date of birth from list..but my o/p is coming as Tue Dec 15 10:30:00 UTC+0530 1992

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
1
vote
1answer
56 views

I am getting “<div>​Manyata embassy,Bangalore</div>” with extra div tags,but i want only Manyata…bangallore to be retrieved in sharepoint list

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
3
votes
1answer
79 views

How to get current master page and replace it on the Site using javascript

I am using SharePoint 2013 Online and I'm looking for some JavaScript and html to get current master page for the site and change the same with other master page. If anyone could help or just point ...
6
votes
0answers
69 views

JSLink in form tag is not working from schema.xml in my SharePoint hosted app

Here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="NewForm.aspx" ...
9
votes
4answers
20k views

REST API filter by start and end dates using 'today'

I'm new to filtering dates with REST in SP but am trying to do something like below but am not sure how to get today's date in as a variable into the request. I don't think I'm too far off so any help ...
3
votes
2answers
61 views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream ...
2
votes
0answers
28 views

Kendo ui Map not working with SharePoint 2010 [closed]

I have to use the kendo ui map for the publishing site. I have added all the references like css, js and added all the html Map rendering code and added with the script editor, it only shows the ...
0
votes
0answers
22 views

Add New Calendar item default All Day Event BUT reset when unchecked

I have the below code for setting all day event to yes ( checked) BUT I wanted to do the resetting to the original when unchecked in SharePoint 2010 Calendar event: <script> ...
1
vote
2answers
80 views

Is there any init function in sharepoint hosted app, It should run once when app is installing

I have to create list when SharePoint hosted app is installing. Is there any function call in SharePoint which runs when app is adding or installing in SharePoint site.
0
votes
2answers
58 views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker ...
1
vote
2answers
68 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
159 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
0answers
27 views

Copying more that 3000 items from custom one list to another by making use of jQuery SP Services in SharePoint 2013

I have a requirement to copy more that 3000 records from one custom list to another by making use of CSOM/jQuery SP Services in SharePoint 2013. My custom list contains around 160 columns. I have did ...
0
votes
1answer
77 views

Uploading File with rest api and HTML5 api

I am using SharePoint 2013 on premise. I am trying to upload file to the custom list from custom webpart purely jQuery and javascript. In my form I have hyperlink, when I click on it, it will open ...
0
votes
1answer
40 views

ModalDialog // change title when dialog openned

I open popup modal dialog with something like this: openInDialog: function (dlgWidth, dlgHeight, dlgAllowMaximize, dlgShowClose, needCallbackFunction, pageUrl) { var options = { autoSize: ...
0
votes
1answer
67 views

Fetch the document name from Document Library using Document ID

I have a Document Library with multiple documents. One can select multiple documents even all the documents at a time. I need to fetch the documents name which are selected in Javascript using JQuery ...
3
votes
1answer
44 views

How to know which people picker is which

I'm trying to replace all of the "bad" old-style people pickers on our custom new/edit forms with the new good client-people pickers. With this thread I came up with the idea to use jquery to find ...
0
votes
1answer
23 views

when i fetch Admin name from list , it gives result as “[object Object]” and not the proper admin name

My List Name Age DOB Indian Title Admins Doc Name Doc Id Address <script type="text/javascript" ...
0
votes
0answers
29 views

in a list, i have lookup fields and i want to fetch lookup:My Name field to one of text box in html named DocNameId…please provide me code

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

Get user details from people picker field using JQuery

I want to display user email address instead of user name when any user is selected from people picker using JQuery. In People Picker control when any name is entered I want to display user's ...
2
votes
2answers
2k views

Help with SPCascadeDropdowns cascading lookup column

I have this jquery added to my editform.aspx in SharePoint. I want the childcolumn to also have unique values, although it may contain duplicates example below. Example. When I select mycountry, I ...
0
votes
0answers
12 views

SPCascadeDropdowns Issues

I have an issue with SPCascadeDropdowns. I have a lookup to Hospital Trust and Hospitals. If I add a new list item the first one saves fine. However subsequent entries do not save the hospital and ...
-1
votes
2answers
111 views

How to get item id from a list view webpart

I have a calculated column with html button where i am calling the java script. On this button click i want to get the ID of the share point list item. I dont want to use desiner workflows to copy ...
0
votes
0answers
41 views

Export Html table to Excel Using JSOM in JS file

I had written the code to fetech the data from sharepoint list and display the information using JSOM from js file.Everything is working fine and when I had written the function to export the html ...
0
votes
0answers
41 views

Append dynamically generated checkboxes into a jquery dialog and pass back selected ones to th ecalle dpage

I had populated the jquery UI dialog with the list items (ID and Title only) I derive using a CAML query , on button click. I want to append checkboxes dynamically to the list item values selected in ...
3
votes
2answers
147 views

check if the theme is inherited from the parent site using Jquery in SHarepoint 2013

Is there any way we can check which on a site whether the theme is being inherited from the parent site using jQuery/JavaScript
1
vote
2answers
88 views

Retrieve Data from Sharepoint List

I'm trying to get Data from SP List via SOAP. It works for standard columns like "ows_Modified". But if I try to get Data from Column I created (example: "DogNames") in the SP List by myself, it ...
1
vote
2answers
94 views

In Sharepoint 2013 online , within $(document).ready(function(){}), sp.js does not get loaded since I do not get clientcontext object

I am trying to display list items on a popup triggered by a button... <script type="text/javascript"> $(document).ready(function() { $( "#divList" ).dialog({ ...
0
votes
3answers
1k views

How to add link in jquery DataTables column?

I have succeeded adding the link in the column but I can't seem to add the url/path in the href attribute. How can I add the path/url and the title in the function below so that the link will be ...
-1
votes
1answer
51 views

Getting list items in SharePoint Hosted App for Office 365

I want the code snippet for Getting the list items and Show it in the App page. I'm creating SharePoint hosted app for Office 365. How do i get the list item values? Thanks in Advance
0
votes
1answer
22 views

Populate New Task choice field via LocalStorage

We are using local storage to hold a text box/title value from a 'main' problem list. In this 'main' list, we first identify the issue/problem. We then add tasks in a task list associated to the ...
1
vote
2answers
45 views

Using CSS3 with SharePoint 2010 causes issue with people picker

I am trying to develop a jQuery based NewForm for a SharePoint 2010 list. Our staff all have IE 11 running in compatibility mode. I force IE to use a CSS3 compatible version by editing the sites ...
1
vote
1answer
47 views

Custom pagination

I have a SP list called "Company" containing 6000 items. Also I don't have access to central admin nor I have a site collection administrator permission(also no designer access). I want to create a ...
-1
votes
1answer
73 views

SharePoint 2013 _vti_bin/usergroup.asmx 500 (Internal Server Error)

I am getting this ERROR: _vti_bin/usergroup.asmx 500 (Internal Server Error) when i try to get User Information. Can anyone see whats wrong with the code: <script language="javascript" ...
2
votes
1answer
378 views

Sum Calculated Column (SP 2013)

There is a very nice solution below from ViewMaster (http://www.viewmaster365.com/#/Create/Sum) that involves some scripting within the formula of a calculated column itself. However, the Sum will be ...
3
votes
4answers
70 views

Upload files on SharePoint 2013 document library using jQuery

How to upload files on SharePoint 2013 document library using jQuery? I am stuck with this.
1
vote
4answers
5k views

'SPServices' is null or not an object

I need to find out if logged in user belongs to a specific sharepoint group (2010). I am using below code to get it. but getting javascript error as 'SPServices is null or not an object'. ...
0
votes
2answers
25 views

SharePoint Forms Fields depend on User

I hope you all are doing good. I have an query regarding SharePoint forms I hope if anyone can help me out. I want to create a SharePoint form where a member from any department can ask for a leave, ...
0
votes
0answers
27 views

how to append description column using jquery

I am trying to append description column from list using jquery but am unable to get the out put. Can some one help me out. function fnCallBack(xData, Status) { var ctrFirst = 1; var liText ...
-1
votes
2answers
385 views
0
votes
1answer
39 views

Logical operators are not working in JS file

Everything is fine I am able to fetching the data from SharePoint 2013 List using CAML query in my js file. But when i try to get the data via dropdown conditions my code is executing in the else ...
3
votes
1answer
86 views

Getting item id from newly created item

I am using SharePoint 2013 Enterprise version. I am using below rest api code to add the record I kept below code in common js file function CreateListItemWithDetails(listName, webUrl, newItem, ...
0
votes
1answer
44 views

Highlight upcoming/overdue calculated column dates in a training list

I have a list to track customer training. Two of the trainig items are recurring; Ethics - annual and GPC Refresher - biannual (every two years). The due dates for each training requirement were ...
0
votes
1answer
182 views

editform jquery value returns undefined

I've added the following code into a CEWP part at the top of the Editform.aspx page (using SharePoint 2013) <html> <script src="https://oursites/jquery-1.11.3.js" ...
0
votes
1answer
33 views

Required field validator is not working in jquery

Here is my code Index.cshtml I gave Javascript functions but validations is not working please check this where i did mistake in this code.Thanks in Advance. enter code here<div class="row"> ...
1
vote
1answer
58 views

Get start and end date of current week which starts in one month and ends in another month

I have to get start date and and end date of current week. I used this code but end date is getting previous month name if week start in one month and ends in another month. Date.prototype.getWeek = ...