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

learn more… | top users | synonyms

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
1answer
55 views

why my jquery is not working to validate my form? PLEASE help

I have 3 dropdowns with 3 related textboxes combo so if dropdown 1 is <> 'Yes' then textbox 1 must not be empty, if dropdown 2 is <> 'Yes' then textbox 2 must not be empty and so on. In ...
0
votes
1answer
28 views

Jquery to display formatted value in content editor

I'm completely new to jquery and by now I'm not able to use it. Can anyone help to write a piece of code, which will display single item (given ID) from the list 'CounterList', column 'Counter' to a ...
0
votes
1answer
34 views

Sharepoint 2013 Client Side Rich Text Editor saving troubles

I'm trying to get a rich text field from the DOM and save it via javascript and its Sharepoint Client Context.I have an XSL form that creates a Sharepoint Form Field with a structure that's something ...
1
vote
1answer
28 views

Get Video Source from variable

I am currently using SharePoint to query a pages library for a video, the aim is to then display this video in an iframe, I am currently using csom to get the video source from a Page, however this ...
0
votes
1answer
35 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
26 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
28 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
61 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 ...
1
vote
2answers
64 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
49 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
23 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
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
1answer
36 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 ...
1
vote
0answers
40 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
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 ...
2
votes
3answers
191 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
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(); ...
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 = ...
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
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 ...
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
78 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 ...
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 ...
0
votes
0answers
26 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
38 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
76 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 ...
1
vote
4answers
157 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
66 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> ...
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" ...
0
votes
1answer
138 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 ...
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 ...
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 ...
-1
votes
2answers
109 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
39 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 ...
1
vote
2answers
91 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({ ...
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
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
votes
1answer
50 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
-1
votes
1answer
72 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" ...
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
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 ...
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
2answers
48 views

Display Profile Image, Can't Select Picture Url

I am attempting to retrieve some profile properties for the current user, and am having a hard time with the profile picture Url specifically. Version is Sharepoint Foundation 2013. When I open the ...