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

learn more… | top users | synonyms

0
votes
1answer
29 views

how to refresh the page when i click the asp image button? [closed]

When i click the image button, page should refresh and show the data i tried in javascipt ,jquery but i am not getting please someone help for this.. Thanks in Advance. here is my code : ...
0
votes
1answer
20 views

Switch list webpart view

I am looking for following solution with use of jQuery/SPdesigner: Page with some buttons on the top as a control to switch list view located below. Right now I have webparts showing different ...
0
votes
1answer
25 views

Finding Column Average

Created a custom list in SharePoint 2013. I have a column that is full of numbers. I would like to find the average per column. To solve this issue I created a calculated column and applied this ...
1
vote
2answers
52 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 ...
2
votes
3answers
166 views

SharePoint 2013 Top Navigation increasing the size width of the menu drop box to fit text using JQuery

I have made the borders visible for the top navigation menu items. When the size of the text is not long the text appears to be fitting the menu drop box, However when the size increase of the text, ...
0
votes
1answer
79 views

SharePoint Online (Office 365) - AutoResolve people picker with current user and detect change in people picker value

I am trying to implement a solution in SharePoint Online by customizing the NewForm.aspx page of a out of the box Calendar List using javascript with the following requirements: When page loads, a ...
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
2answers
59 views

HillbillyTabs 3.0 in SharePoint 2013 Select Box Bug

I've got Hillbilly Tabs working great in my on-prem 2013 environment. The only issue I'm running into is with selecting items or documents in the web parts when they are inside tabs. This seems to be ...
2
votes
1answer
42 views

Best Practice for adding jQuery reference in Master Page [duplicate]

I have a site collection on the root directory http://pc51:1001 and a site collection under the sites directory http://pc51:1001/sites/First . I am trying to add jQuery file reference in Master ...
0
votes
0answers
21 views

GET Column data Through query or javascript

I have a table and after table tag one button when button click then get 4th column data Email table...All Email of customer and store in a array. Kindly help me to find out the problem.
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 ...
0
votes
1answer
33 views

jQuery doesn't execute in Sharepoint

I'm on Sharepoint project for a client, and I took over the development of website, but the client has the lead of project. Based on a Bootstrap Theme, the project works on local. But, when I try on ...
0
votes
1answer
27 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
30 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
30 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(); ...
1
vote
2answers
4k views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...
0
votes
2answers
61 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
37 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
55 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 = ...
1
vote
2answers
1k views

Getting Calendar items on Office 365 using REST API

I am having trouble with a REST call using jQuery on Office 365 and was wondering if you guys have ever experienced something similar and could give me some hints? What I am trying to achieve is to ...
0
votes
1answer
1k views

SPServices SPGetLastItem returns last id for current user

The function SPGetLastItem from SPServices returns last id for items that only the current user has created. I want a function that returns the last id for any user.
3
votes
1answer
74 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
59 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
19k 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 ...
1
vote
1answer
2k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
1
vote
1answer
91 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
3
votes
2answers
58 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
19 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
48 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
50 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
66 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
123 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
24 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
65 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
29 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
44 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
41 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
27 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
731 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
78 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
35 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
36 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
146 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
81 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
82 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
940 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 ...