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

learn more… | top users | synonyms

5
votes
3answers
264 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
26 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
47 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 ...
2
votes
3answers
784 views

Remember filter value using jquery and cookies

I am looking for a solution for the following problem: I have a large list that is related to a second list. The two list web parts are on one page, when you select an item in the first list, the ...
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 ...
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
69 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
18 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
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
1answer
74 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
2answers
778 views

Conditionally hiding/showing fields on a custom newform using jquery

This is something I have been struggling with for some time now. I have looked all over the internet at different forums and blogs trying to find a solution and I have finally gotten ALMOST there. I ...
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
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
834 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 ...
4
votes
1answer
5k views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
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
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
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
38 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 ...
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
25 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 ...
1
vote
2answers
788 views

how to validate SharePoint:formfield

I have a data view web part and it does insert,delete ,in edit mode it save and cancel button.The data is based on a custom list.In the list i have set the max to 4 but in DWP it doesn't seem to work. ...
0
votes
1answer
867 views

SharePoint 2007 HttpHandler can't use SPContext.Current.Site or SPContext.Current.Web when called from jQuery

I have the need to develop a custom HttpHandler in SharePoint. To start, I just coded up a simple example from here. On line 35 or 36 of that code I get a NullReferenceException thrown if I call my ...
1
vote
2answers
2k views

Security warning for JavaScript and CSS file?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + JavaScript (jQuery). I met with the following ...
0
votes
2answers
134 views

How to merge mulitple list in single view?

We are using SP2013 On-Premise Standard Edition. So Content Search WebPart is not available. In a site collection there are 100+ subsites. Each subsite have a list with custom content type X. We need ...
0
votes
1answer
55 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 ...
1
vote
1answer
906 views

Customize InfoPath Form select element

I have an InfoPath form used for ordering inventory from our warehouse. There are drop-down lists with the roughly 180 inventory items available for request. I would like to make hybrid drop-down ...
0
votes
1answer
29 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
41 views

Required field validator is not working in jQuery

Here is my code Index.cshtml I gave JavaScript functions but validations is not working please check this where i did mistake in this code. Product List <table ...
0
votes
1answer
51 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
436 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
38 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 ...
0
votes
2answers
38 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
30 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 ...
1
vote
4answers
547 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, ...
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
0answers
121 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
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: $()....
1
vote
2answers
618 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
33 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
27 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
0answers
90 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
48 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 = $(this).attr("...
1
vote
1answer
98 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
31 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 ...
0
votes
1answer
251 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 ...