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

learn more… | top users | synonyms

0
votes
3answers
37 views

REST API : fetch the listitem details using it's url

I need to fetch the listitem details using it's url with REST API. The list item url is like : http://<webappname>/Sites/<sitecollection name>/en-US/Pages/TVM3.aspx I want to fetch the ...
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 + "/...
2
votes
2answers
3k views

Get email and name from people picker SharePoint 2013 online

I've tried retrieving data from a multiple people picker field on a SharePoint 2013 form in numerous ways, the best I've done is getting the display name. If it all possible i'd like to retrieve the ...
1
vote
2answers
39 views

How to get the return value from SP.SOD.executeFunc?

I have the same scenario as what this below question has: How to get the return value of an on demand executed function? I have SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getPageTitle); ...
2
votes
1answer
1k views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
4
votes
2answers
673 views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
0
votes
0answers
36 views

I've added people picker and I want to add its values to column in a list

I have a column of type group or people. I've implemented people picker on aspx page using jQuery. I want to add picked users to my column in list my code is: $(document).ready(function () { // ...
1
vote
3answers
55 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
39 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
32 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
65 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', ...
6
votes
3answers
643 views

Hide options from ECB Menu in SharePoint 2013 Library

I have added a document in a document library. I am trying to hide an option from ECB Menu How do you hide any options from ECB Menu? Update: Each item has a column "x" with different values. So, ...
3
votes
1answer
1k views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
1
vote
2answers
28 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
2answers
33 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?
0
votes
1answer
76 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
vote
1answer
66 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
49 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 //...
0
votes
2answers
58 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(); }); ...
-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
47 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
1answer
1k views

How can I make links in the left navigation open in a new tab?

I'm trying to make two links on the left navigation open up into a new tab as they are external sites. It should be as easy as adding target="_blank" to their HTML element but when I wrote some jQuery ...
0
votes
0answers
32 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
2answers
2k views

Sharepoint 2013 Rest API _api/Web/SiteUserInfoList filter Name

I have some trouble to use the Sharepoint2013 Rest API _api/Web/SiteUserInfoList. I need to use a $filter on the Name. I get always a 400 Bad Request. This is my endopoint rest ....my_site.../_api/...
0
votes
5answers
11k views

Jquery to get list items from SharePoint list

I have a work from my time to use jQuery with SharePoint . I have written the code to get list items. When I run in IE it doesn't show any errors to me, but I am not getting the results. Can any one ...
10
votes
3answers
879 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
3answers
58 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
36 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
55 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
58 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
60 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 ...
3
votes
2answers
5k views

How to get PublishingRollupImage for page in Page library with REST and jQuery?

I have a repeater in a user control and I databind it in code behind like so: var items = list.Items.Cast<SPListItem>() .OrderByDescending(a => a[...
1
vote
7answers
927 views

How to get People Picker ID using Javascript

Hi is there any way to get the People Picker value using Jquery / JavaScript? Currently we use title tag to get the id of our input fields values but people picker has only one generic title field ...
5
votes
3answers
283 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. ...
0
votes
0answers
31 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: ...
1
vote
2answers
62 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 ...
1
vote
1answer
45 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 ...
5
votes
6answers
9k views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
1
vote
1answer
117 views

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

How to retrieve and display Sharepoint calendar events using JSOM ?
0
votes
0answers
24 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
0answers
16 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
1answer
94 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
1
vote
2answers
33 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
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 ...
1
vote
2answers
869 views

jQuery: what version do I have to use in SharePoint 2013?

I have a full responsive site in SP 2013 with several WebParts developed by a very huge developer group. We have centralized custom script links and JavaScript APIs (and/or frameworks) in two ...
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
38 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
42 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
38 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 ...