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

learn more… | top users | synonyms

0
votes
1answer
19 views

My jQuery code is not kicking off in DisplayForm in SharePoint

I have added some jQuery code to the DisplayForm as follow- <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1....
0
votes
0answers
13 views

Dynamic Display Template Menu

I have a video library with a Category, Chapter, Section and Title Column. Content Type | Name | Category | Chapter | Section Video | Video 1 | A | 1 - Getting to Know A | 1....
0
votes
0answers
22 views

REST API / People Search Results

In my people search results I am querying the REST api to get a link to each person's CV, which are all held in a single document library. I am returning the correct results, but rather than one CV ...
-1
votes
0answers
30 views

“[object Object]” is alerted when I try to check whether my admin field contain value or not [duplicate]

User recieves an alert box with text as [Object Object] on the screen when he runs the below function. What could be the possible reason for it and how to avoid it. function PreSaveAction() { var ...
-1
votes
2answers
55 views

people picker and rich text box field not function well under presave. alert box pops up even there is info provided

function PreSaveAction(){ var ITOwnerField = $("#ctl00_ctl41_g_648c8386_16ca_4729_9c59_c9757150bafe_ff41_ctl00_ctl00_UserField_upLevelDiv"); SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
-1
votes
0answers
20 views

i am using following code on IE console to check is any checkbox is checked or not. addition 'undefined' coming [on hold]

var a = $('#PIIDataId input:checked').length > 0 console.log(a); //it gives o/p as "undefined (nextline) true"
0
votes
2answers
26 views

Jquery to insert total of a column onto another column in SPS2013?

Please suggest the way to get Jquery to perform total of the numeric value in column 1 and insert the output on column 2 in SharePoint 2013 List?
1
vote
2answers
26 views

Is this the proper querying method for SP2013?

I'm having issues trying to load the proper script below to become a customized image rotator on my SharePoint 2013 platform. Can anyone help please? I want to know if I am writing the code properly......
0
votes
0answers
24 views

Querying Lists in 2013 via Javascript and JQuery [closed]

I'm having issues trying to load the proper script below to become a customized image rotator on my SharePoint 2013 platform. Can anyone help please? I am using Cycle as my jQuery base I have ...
1
vote
1answer
55 views

Registration form/Auto fill list - Sharepoint 2013

I'm working with SharePoint 2013 and SharePoint designer 2013. I DON'T HAVE INFOPATH. I have 2 lists, one is a training calendar and the other one is for registration to these training. Here's the ...
0
votes
3answers
40 views

presave function not working for multiple fields

var j = jQuery.noConflict(); function PreSaveAction() { var txtTitle = $("#ctl00_ctl41_g_648c8386_16ca_4729_9c59_c9757150bafe_ff21_ctl00_ctl00_TextField").val(); //Application Name //...
-1
votes
0answers
22 views

extra “undefined” is coming with defined output [closed]

var count = 0; $("#PIIDataId").find("span.ms-RadioText > input").each(function() { if($(this).prop("checked")) { count += 1; } }); console.log(count);
0
votes
2answers
45 views

SharePoint Context and Caml query is not working

Here is my code.. var CmalQuery=""; var fieldName=""; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); fn(); }); ...
0
votes
1answer
59 views

SP 2013 - JQUERY to check the value of a choice type field

Im hoping someone could supply me the proper SHAREPOINT SYNTAX to use in JQUERY code to check what the value of a SHAREPPOIINT CHOICE TYPE field. I thought I needed to check a checkbox type field so ...
-1
votes
1answer
30 views

I want numeric count for checked box but i am getting array of values [closed]

$("#UserOrgId").find("span.ms-RadioText > input").each(function() { console.log($(this).prop('checked')); } ) //Provides me 23 rows with true false value but i want count of trues only i.e....
0
votes
2answers
38 views

Fetch User Details in SharePoint 2010

I have a requirement to fetch user details in SharePoint 2010. Just like SharePoint 2013, are there any web services available which can used in JavaScript Code? I need to fetch user details that ...
0
votes
0answers
34 views

I need jQuery code for situation : “I hv 10 checkboxes ,out of which user must select more than 2 checkbox” [closed]

var txtTitle1 = $("#ctl00_ctl41_g_648c8386_16ca_4729_9c59_c9757150bafe_ff311_ctl00_ctl00").is(':checked')?1:0; var n = $('input:checked').length; var j = if(n <= 1)? 1:0;
0
votes
0answers
29 views

Jquery to copy specific data and insert it in a specific blank field in SPS 2013 List

Is it possible using JQUERY in SharePoint 2013 Enterprise (On Premise) to copy read only specific data flashing on a SharePoint 2013 List and insert it on a blank field on the same SPS 2013 List?
0
votes
3answers
57 views

alert message not popping up

var j = jQuery.noConflict(); function PreSaveAction() { var txtTitle = j.(":input[title='Application Name']").val(); alert(txtTitle); if(txtTitle == ''){ alert("Value Cannot be ...
0
votes
1answer
30 views

Automatically update hyperlink to point to newest added document in a library

This is my first post here, so bear with me. I am reletivley new to SharePoint, however I do know my way around it. Basically on my site homepage I have promoted links set up along the top. One of ...
0
votes
2answers
45 views

Calculated column output with CSR

I have a calculated column which returns YES NO. I want to color code the entire row based on these values. Below is my code using CSR **(function () { // Initialize the variable that stores the ...
0
votes
2answers
38 views

Seattle.html and Oslo.html not visible in SharePoint Designer

The book I'm using as a resource to add jQuery to our SharePoint Online site discusses editing the Seattle.html and Oslo.html files in SharePoint designer. However, those files are not appearing in ...
1
vote
1answer
54 views

jQuery in has stopped working in SharePoint Online Web Parts

So I'm adding a accordion to clean/beautify our team's SharePoint site. I had it functioning, then today I was modifying another part of the page and the accordion suddenly stopped working. I reverted ...
0
votes
0answers
25 views

Javascript no longer works after loading a SSRS Viewer Web Part

I have a sharepoint 2013 page with three web parts. Two are list web parts and one is a SSRS Report viewer web part. I've added the following scripts to the page via a CEWP. <!-- Name: ...
5
votes
3answers
262 views

Custom ECB-Menu Item which copies the Link of the document into the Clipboard

I would like to add an Item to the Edit Control Block Menu (ECB-Menu) (red marked in Screenshot), which copies when clicking on this Item (onClick) the link of the chosen document into the Clipboard. ...
1
vote
2answers
44 views

How to access custom property from User Profile using jquery

Environment : SP 2010 I have a custom property in User Profile called CompanyCode. I need to fetch this property using javascript/jquery in a master page. Can anyone let me know how to fetch custom ...
0
votes
0answers
17 views

Prevent modal dialogs from getting closed after deleting an item

my JavaScript-application has a rather deep navigation using cascaded modal dialogues (SP.UI.ModalDialog.showModalDialog(...)). Sharepoint does handle this really well. From the 3rd level modal ...
1
vote
1answer
60 views

How to retrieve and display Sharepoint calendar events using JSOM (example)

How to retrieve and display Sharepoint calendar events using JSOM ?
1
vote
0answers
14 views

SP2013: SP.Result returns 0 when calling get_value()

Maybe it is a very simple fix for this but i have problem with retrieving the m_value from a SP.result. SP.Result {} m_value:false __proto__:Object constructor:function () customFromJson:function () ...
1
vote
2answers
32 views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
1
vote
1answer
44 views

Restrict user from selecting time slot if it reaches maximum number of seats

I am new to working with SP lists with jQuery. Here is my requirement : I have a InfoPath form for selecting training slot for employees. The form contains Date field and Time slots (Drop down having ...
1
vote
1answer
68 views

Get client computer name on SharePoint using JavaScript

Any idea how to get the client computer name or the client computer details within any SharePoint Site collection
0
votes
1answer
18 views

SPS2013 List page add href to existing text using Jquery?

Insert href link on existing text: abc, part of a DIV ID: wpfunc01 on a SPS2013 List page. I guess this can be achieved via Jquery. Please assist with the complete code to insert href on existing ...
1
vote
0answers
34 views

Add Div below the Input Type text

I want to show and add the existing Div right below the input type text box on Button click event. I'm using content editor web part to show the below html <div id="Div1" style="Display:None;">...
4
votes
1answer
37 views

SlideTo (a Web Part) Button in SharePoint 2013

I would like to insert a button to a SharePoint page which slides the opened site to a specific Web Part. I guess there is any solution with jQuery. To describe the problem: I have two document ...
1
vote
2answers
33 views

SharePoint 2013 custom list attachment link

I am creating custom form in jQuery and HTML5. I am using rest api for getting data. I am fetching attachment also and generating dynamic string with HTML code with jQuery. Every thing goes fine it ...
1
vote
1answer
15 views

Autheticating users from a third party application

I've got a java web-app in which I need users to create documents. These documents must be allocated in a SP 2013 server. My first idea was to use users' themselves SP sites to allocate their ...
1
vote
0answers
36 views

How can i select all field of literal control?

i am implementing literal control to bind SharePoint list data. When I select all data in Literal Control using checkbox in corner then it will select only 10 items of list instead of selecting all ...
0
votes
2answers
42 views

jQuery CAML results into jQuery DATATABLES plugin

Using the following code to extract items for a SharePoint list and display in HTML. Works great thank to all you folks here. Now I want to inject the output into the jQuery DataTables plugin but not ...
0
votes
1answer
24 views

How to embed/add jquery and bootstrap on the same page

How can you embed/add jQuery and bootstrap on the same page, at the same time? should you use the Microsoft or Google API link? I've tried to integrate these to work with bootstrap and jQuery. but ...
0
votes
1answer
54 views

Getting no REST data in SharePoint in a html file

I am trying to get some data from a REST Service Url in a html file. This works fine when i am using the code direct in my browser. But when i embedded it into my SharePoint Site it wont work. On my ...
0
votes
1answer
27 views

Add CSS Class to SharePoint Drop down Field using JQuery

i want to add css class to choice drop down filed using jquery below is code. $("input[title='fieldname']").attr('class', 'form-control') But somehow it is not working. can anyone help me ...
0
votes
1answer
48 views

Bootstrap Carousel with jQuery to query the images from Picture Library

I am having trouble having the jQuery to fetch the images from the Picture Library in SharePoint and display on bootstrap carousel. I'm very new to this functionality using jQuery and I think I am not ...
9
votes
3answers
860 views

Using jQuery $(document).ready() in JavaScript Object Model

I've been using with great success the $(document).ready(function() { FunctionName(); }); in a SharePoint WebPart code snippet to fire off COSM CAML queries using JavaScript to build various ...
0
votes
2answers
37 views

How do I add SlideToggle to Expand/Collapse script for Content Query

I have been using the following script to collapse groupings in content query web parts. In another script used for collapsing web parts, it contained a SlideToggle function. Can anyone assist me ...
0
votes
0answers
29 views

Show and hide Web Parts: How to keep Web Part opened?

I've added the script (you can see below) to my site, which hides Web Parts in standard and opens / closes them by clicking on the title. Now I have the case, that I used this code on two document ...
0
votes
1answer
24 views

JQuery check value of checkbox OnLoad

Im using SharePoint 2010 and have created a CEWP that displays fields associated with a checkbox when it is clicked and has a check. I need to check the value of the checkbox on the load as well and ...
1
vote
2answers
28 views

How to remove certain entries of context menu [(…)-Menu] using Script Editor Web Part (JavaScript, jQuery)

How can I remove certain entries of the context menu (marked in my screenshot with red border) by using Script Editor Web Part? As an example, I would like to remove the entries "Im Browser bearbeiten"...
0
votes
2answers
46 views

SharePoint Site Collection Administrators : Jquery

I have a current logged in User Id and through JQuery I want to find that whether the User Id is in site collection admins or not. $().SPServices({ operation: "GetUserInfo", userLoginName: $()....