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

learn more… | top users | synonyms

4
votes
2answers
594 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 ...
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 ...
0
votes
1answer
19 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 ...
0
votes
1answer
435 views

jquery is not working on panel hide on post back

I have created SharePoint application page and I have a Dropdownlist (ddlTaskFrequency). On dropdown text changed(Monthly) I have written a jQuery code to show panel2 and hide panel1. it is working ...
1
vote
1answer
33 views

Union Multiple Lists with Client JavaScript Object Model

I have several SP 2010 lists with the exact same columns. I would like to perform a union on the lists and display a filtered subset from this union. I tried doing it using a joined datasource in SP ...
4
votes
2answers
715 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
25 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
19 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 ...
2
votes
2answers
2k views

Sharepoint custom list: Hiding and showing column based on drop down dependancy

I'm trying to add javascript to the dispform.aspx page of my form to hide certain columns/fields based on a dropdown menu. When I add the code to the CEWP it simply adds text above the fields; the ...
1
vote
2answers
2k views

how to access input element in parent from inside iframe in sharepoint

I have the following jquery code and I have inserted it in an html page where I call it inside an iframe in a SharePoint page. I am using this line of code to get the id from the control in the parent ...
1
vote
4answers
535 views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
1
vote
1answer
840 views

Jquery is not loading properly in Internet explorer 11 browser until page refresh

Im using this jquery plugin called Slidorion with SPServices. On firefix,Chrome when the page loads first it works all good. But in IE 11 it doesnt work on first load until i refresh it. I have ...
2
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
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 + ...
0
votes
1answer
17 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 ...
0
votes
2answers
17 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 ...
0
votes
0answers
97 views

Access Sharepoint 2013 List from outside SP

Good morning, I wanted to be able to access items in a Sharepoint List from a stand-alone web page hosted on a different server. I've read through references to the REST API and I can see that I can ...
0
votes
2answers
30 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: ...
1
vote
2answers
584 views

Add run with run with elevated privileges for spservices?

I am unable to add users to the group using custom button and SPServices,only site administrators can only able to add the users to the group.can any one help me how to add the run with elevated ...
0
votes
2answers
31 views

onclick for a function in a js file [closed]

I'm trying to call a jquery function with the onclick attribute of a button: <input type="button" id="palettebutton" value="VALIDER" onclick="getItemsToBeUpdated()"/> I can do this when my ...
0
votes
0answers
26 views

How to lock scroll bar in SharePoint after refresh

I want to resume to middle of the page where I was even after refreshing page, instead of returning to the top. How to lock scroll bar in SharePoint after refresh?
0
votes
1answer
833 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
0answers
32 views

Color Code Gantt Chart in SP 2013

Has anyone found or written a script that adjusts the color of task bars in a Gantt view in SharePoint 2013 based on a value of the item? I've been able to successfully apply color coding to ...
1
vote
1answer
29 views

Retrieve the Item ID from the Task List Related Item column

Using JSOM, I getting all the task details which are not started. Using CAML query i got all the column values including related item column from Task list var relateditm = ...
1
vote
1answer
37 views

Add Back Button to Survey List in SharePoint 2013

In Survey, people can respond all the questions sequentially within one page or Add branching logic to answer one by one like wizards. Please refer the Image After creating survey with ...
0
votes
0answers
30 views

SharePoint Site needs to be refreshed to load results

Just to give you a brief background of what's happening, if we try to say search a certain keyword, the result page returns blank. We have to refresh the page for it to completely load. Also when we ...
2
votes
1answer
2k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
0
votes
1answer
148 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
1answer
5k views

How can I display checkbox or radio button choices in a Choice field vertically?

I have a list with SharePoint 2007 with a Choice column that I'd like the choices to be displayed vertically (every 2 or 3) instead of horizontally. Is there some JavaScript/jQuery I can utilize to ...
0
votes
0answers
28 views

run external JavaScript or jQuery in sharepoint infopath form after postback

problem occur when postback on a field happen, all external js code stop working until run js code again. how can i use external JQuery code in sharepoint with infopath form in it ?
1
vote
2answers
124 views

Add JQuery to SharePoint

I want to add some global JavaScript to Sharepoint 2010. So I put JQuery to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS and my script to C:\Program ...
1
vote
1answer
23 views

Accordion webpart in SharePoint 2010 choppy when selected

I'm using the script (link provided) and it is working for me without having to do much. But the problem is the script is very choppy and when I select a webpart, it doesn't have the smooth effect ...
0
votes
1answer
45 views

How can I add all contents of a dynamic html table to a SharePoint list?

So my table is 1 row where rows can be added, although it does not have unique id's for each row. I'd imagine this is the issue. $('#submitdata').click(function(){ var table = ...
0
votes
1answer
23 views

Open attachments in new tab issue

I am trying to open list item attachments in a new tab (when user clicks on an attachment in display form) I am using this piece of jQuery/javascript in my custom display form to do that: ...
0
votes
2answers
41 views

Best Javascript Grid for SharePoint REST returning data

I've managed to write jQuery code that returns the data for a SharePoint doc library. is there a best method or a clean framework to render that returning json data as a grid that look pretty close ...
0
votes
0answers
11 views

How to get filter data in sharePoint lookup field

I have a lookup field in List A which get data from list B. list B has one more field YES/NO . so i wrote a CAML Query which gives the filtered data depending on this YES/NO , how can i show my query ...
1
vote
5answers
669 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 ...
0
votes
1answer
45 views

Pull Data from SharePoint List using JS and converting it into HTML in the following format?

I was wondering how to use JS in order to pull Data from a SP2013 list convert it into HTML using the following structure below. For example: The List fields are as follows: Title Date Image Body ...
2
votes
3answers
852 views

Need a way to identify files which have no checked in version

I wrote a script that traverses a collection, it's document libraries and gets a list of all files. I'm trying to find all the documents which do not have a checked in version and require a user to go ...
0
votes
1answer
49 views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = ...
0
votes
1answer
16 views

Looping through CQWP li's

I have a CQWP that executes the following JS: var projectstartdt = $(".hiddenProjectStartDate").html().split(/\-|\s/); var ProjectStart = new Date(projectstartdt.slice(0,3).join('/')+' ...
1
vote
3answers
54 views

CSOM error with SP.SOD.executeFunc used twice

I'm trying to do several CSOM requests. But I can't do it. Here is my first, that works alone : var collListItemToBeUpdatedRevente = ""; var enumeratorRevente; var ...
0
votes
2answers
335 views

JQuery to execute on change of taxonomy field

I am trying to find a way to auto populate some values whenever I detect a change in taxonomy selection (ClientPeoplePicker control), how can I achieve this using jquery? This is what I currently ...
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
1answer
25 views

Javacript with MDS loads each way only one time

i like to do a simple javascript execution with MDS and without MDS. To do this, I have used this Javacript only executed on first page load HowTo to get work. The Problem i have, is that the script ...
0
votes
4answers
1k views

Two jquery webparts on same page. one not working

I have two web parts that use jquery on the same page. this causes one of them not to work. One of them is an actual web part with a reference to ~SiteCollection/Style ...
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.
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 ...
4
votes
3answers
6k views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
1
vote
1answer
39 views

SharePoint JSOM and Promises - copying items from one list to another

I need to use JSOM to copy a set of items (found from a CAML query) from one SharePoint list to another. I'm pretty experienced doing this type of thing on the server side, but relatively new with it ...